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