public AbpOnDockerMigrationsDbContext CreateDbContext(string[] args)
        {
            AbpOnDockerEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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