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