public DashboardDemoMigrationsDbContext CreateDbContext(string[] args)
        {
            DashboardDemoEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new DashboardDemoMigrationsDbContext(builder.Options));
        }
Esempio n. 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     DashboardDemoEfCoreEntityExtensionMappings.Configure();
 }