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