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