public CustomNgAppWithIdentityServerMigrationsDbContext CreateDbContext(string[] args)
        {
            CustomNgAppWithIdentityServerEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <CustomNgAppWithIdentityServerMigrationsDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));

            return(new CustomNgAppWithIdentityServerMigrationsDbContext(builder.Options));
        }
Пример #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     CustomNgAppWithIdentityServerEfCoreEntityExtensionMappings.Configure();
 }