public IdentityServerMigrationsDbContext CreateDbContext(string[] args)
        {
            IdentityServerEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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