public MyProjectNameMigrationsDbContext CreateDbContext(string[] args)
        {
            MyProjectNameEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <MyProjectNameMigrationsDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));

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