public ModuleOverrideTestMigrationsDbContext CreateDbContext(string[] args)
        {
            ModuleOverrideTestEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new ModuleOverrideTestMigrationsDbContext(builder.Options));
        }
예제 #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     ModuleOverrideTestEfCoreEntityExtensionMappings.Configure();
 }