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