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