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(); }
public InitialHostDbBuilder(SdtDbContext context) { _context = context; }
public DefaultTenantBuilder(SdtDbContext context) { _context = context; }
public DefaultSettingsCreator(SdtDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(SdtDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultLanguagesCreator(SdtDbContext context) { _context = context; }
public HostRoleAndUserCreator(SdtDbContext context) { _context = context; }
public TestDataBuilder(SdtDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultEditionCreator(SdtDbContext context) { _context = context; }