public ProjectMigrationsDbContext CreateDbContext(string[] args)
        {
            ProjectEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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