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