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