You've already forked Extensions.Configuration.EntityFrameworkCore
Don't use PooledDbContextFactory when initially loading config
This commit is contained in:
@@ -84,9 +84,11 @@ public record Setting : ISetting
|
||||
public required string Value { get; set; }
|
||||
}
|
||||
|
||||
public class MyDbContext(DbContextOptions<MyDbContext> options) : DbContext(options), ISettingsDbContext<DbSet<Setting>, Setting>
|
||||
public class MyDbContext(DbContextOptions<MyDbContext> options) : DbContext(options), ISettingsDbContext<DbSet<Setting>, Setting>, ISettingsDbContextFactory<MyDbContext>
|
||||
{
|
||||
public DbSet<Setting> Settings { get; set; }
|
||||
|
||||
public static MyDbContext Create(DbContextOptions<MyDbContext> options) => new(options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user