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