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