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