public ZzzMigrationsDbContext CreateDbContext(string[] args)
        {
            ZzzEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            //var builder = new DbContextOptionsBuilder<ZzzMigrationsDbContext>()
            //    .UseSqlServer(configuration.GetConnectionString("Default"));
            var builder = new DbContextOptionsBuilder <ZzzMigrationsDbContext>()
                          .UseMySql(configuration.GetConnectionString("Default"), new MySqlServerVersion(new Version(5, 7)), mySqlOptions => mySqlOptions
                                    .CharSetBehavior(CharSetBehavior.NeverAppend));

            return(new ZzzMigrationsDbContext(builder.Options));
        }
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     ZzzEfCoreEntityExtensionMappings.Configure();
 }