public ASPCoreMVCMigrationsDbContext CreateDbContext(string[] args) { ASPCoreMVCEfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <ASPCoreMVCMigrationsDbContext>() .UseMySql(configuration.GetConnectionString("Default"), MySqlServerVersion.LatestSupportedServerVersion); return(new ASPCoreMVCMigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { ASPCoreMVCEfCoreEntityExtensionMappings.Configure(); }