mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2025-12-19 03:55:11 +00:00
Fixed concurrency bug
This commit is contained in:
@@ -92,11 +92,12 @@ namespace BasicSample
|
||||
dbConnection.Open();
|
||||
|
||||
using var serviceProvider = new ServiceCollection()
|
||||
.AddDbContext<ApplicationDbContext>(options => {
|
||||
.AddEntityFrameworkSqlServer()
|
||||
.AddDbContext<ApplicationDbContext>((provider, options) => {
|
||||
options
|
||||
.UseSqlite(dbConnection)
|
||||
.UseProjectables()
|
||||
.UseLoggerFactory(LoggerFactory.Create(builder => builder.AddConsole()));
|
||||
.UseInternalServiceProvider(provider);
|
||||
})
|
||||
.BuildServiceProvider();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user