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