Пример #1
0
        public static void SeedHostDb(s1DbContext 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();
        }
Пример #2
0
 public DefaultSettingsCreator(s1DbContext context)
 {
     _context = context;
 }
Пример #3
0
 public DefaultTenantBuilder(s1DbContext context)
 {
     _context = context;
 }
Пример #4
0
 public DefaultLanguagesCreator(s1DbContext context)
 {
     _context = context;
 }
Пример #5
0
 public InitialHostDbBuilder(s1DbContext context)
 {
     _context = context;
 }
Пример #6
0
 public HostRoleAndUserCreator(s1DbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(s1DbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Пример #8
0
 public DefaultEditionCreator(s1DbContext context)
 {
     _context = context;
 }