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