예제 #1
0
        public static void SeedHostDb(SdtDbContext context)
        {
            context.SuppressAutoSetTenantId = true;

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

            // Default tenant seed (in host database).
            new DefaultTenantBuilder(context).Create();
            new TenantRoleAndUserBuilder(context, Tenant.DefaultId).Create();
        }
예제 #2
0
 public InitialHostDbBuilder(SdtDbContext context)
 {
     _context = context;
 }
예제 #3
0
 public DefaultTenantBuilder(SdtDbContext context)
 {
     _context = context;
 }
예제 #4
0
 public DefaultSettingsCreator(SdtDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(SdtDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
예제 #6
0
 public DefaultLanguagesCreator(SdtDbContext context)
 {
     _context = context;
 }
예제 #7
0
 public HostRoleAndUserCreator(SdtDbContext context)
 {
     _context = context;
 }
예제 #8
0
 public TestDataBuilder(SdtDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
예제 #9
0
 public DefaultEditionCreator(SdtDbContext context)
 {
     _context = context;
 }