public PaperMigrationsDbContext CreateDbContext(string[] args)
        {
            PaperEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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