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