Пример #1
0
        public static void SeedHostDb(IdentityServerDemoDbContext context)
        {
            context.SuppressAutoSetTenantId = true;

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

            //Default tenant seed (in host database).
            new DefaultTenantBuilder(context).Create();
            new TenantRoleAndUserBuilder(context, 1).Create();
        }
 public TenantRoleAndUserBuilder(IdentityServerDemoDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Пример #3
0
 public InitialHostDbBuilder(IdentityServerDemoDbContext context)
 {
     _context = context;
 }
Пример #4
0
 public DefaultTenantBuilder(IdentityServerDemoDbContext context)
 {
     _context = context;
 }
Пример #5
0
 public DefaultSettingsCreator(IdentityServerDemoDbContext context)
 {
     _context = context;
 }
Пример #6
0
 public HostRoleAndUserCreator(IdentityServerDemoDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(IdentityServerDemoDbContext context)
 {
     _context = context;
 }
Пример #8
0
 public DefaultLanguagesCreator(IdentityServerDemoDbContext context)
 {
     _context = context;
 }