public CacheManagementDemoMigrationsDbContext CreateDbContext(string[] args) { CacheManagementDemoEfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <CacheManagementDemoMigrationsDbContext>() .UseSqlServer(configuration.GetConnectionString("Default")); return(new CacheManagementDemoMigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { CacheManagementDemoEfCoreEntityExtensionMappings.Configure(); }