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