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