public AbpQa274MigrationsDbContext CreateDbContext(string[] args) { AbpQa274EfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <AbpQa274MigrationsDbContext>() .UseSqlServer(configuration.GetConnectionString("Default")); return(new AbpQa274MigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { AbpQa274EfCoreEntityExtensionMappings.Configure(); }