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