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