public CMSMigrationsDbContext CreateDbContext(string[] args)
        {
            CMSEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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