public static void SeedHostDb(IdentityServerWithEfCoreDemoDbContext context)
        {
            context.SuppressAutoSetTenantId = true;

            // Host seed
            new InitialHostDbBuilder(context).Create();

            // Identity Server 4
            new InitialIdentityServerDbBuilder(context).Create();

            // Default tenant seed (in host database).
            new DefaultTenantBuilder(context).Create();
            new TenantRoleAndUserBuilder(context, 1).Create();
        }
 public DefaultEditionCreator(IdentityServerWithEfCoreDemoDbContext context)
 {
     _context = context;
 }
Example #3
0
 public HostRoleAndUserCreator(IdentityServerWithEfCoreDemoDbContext context)
 {
     _context = context;
 }
Example #4
0
 public InitialHostDbBuilder(IdentityServerWithEfCoreDemoDbContext context)
 {
     _context = context;
 }
 public DefaultSettingsCreator(IdentityServerWithEfCoreDemoDbContext context)
 {
     _context = context;
 }
Example #6
0
 public DefaultLanguagesCreator(IdentityServerWithEfCoreDemoDbContext context)
 {
     _context = context;
 }
 public DefaultTenantBuilder(IdentityServerWithEfCoreDemoDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(IdentityServerWithEfCoreDemoDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }