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