public AbpIoTestMigrationsDbContext CreateDbContext(string[] args)
        {
            AbpIoTestEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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