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