skip to Main Content

Can Asp.net create a unique database for each session?

I need a live demo for a product. Said product uses ASP.NET with Entity Framework. Currently I create a new in-memory database like this: var sqliteConnection = new SqliteConnection("DataSource=:memory:"); sqliteConnection.Open(); builder.Services .AddDbContextFactory<DatabaseContext> (options => options.UseSqlite(sqliteConnection, o => o.UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery))); However, I…

VIEW QUESTION
Back To Top
Search