public PlaygroundMigrationsDbContext CreateDbContext(string[] args)
        {
            PlaygroundEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <PlaygroundMigrationsDbContext>()
                          .UseMySql(configuration.GetConnectionString("Default"));

            return(new PlaygroundMigrationsDbContext(builder.Options));
        }
Example #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     PlaygroundEfCoreEntityExtensionMappings.Configure();
 }