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