예제 #1
0
        public ClientSimulationDemoMigrationsDbContext CreateDbContext(string[] args)
        {
            ClientSimulationDemoEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new ClientSimulationDemoMigrationsDbContext(builder.Options));
        }
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     ClientSimulationDemoEfCoreEntityExtensionMappings.Configure();
 }