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