public static void SeedHostDb(CMADbContext 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(CMADbContext context) { _context = context; }
public InitialHostDbBuilder(CMADbContext context) { _context = context; }
public DefaultTenantBuilder(CMADbContext context) { _context = context; }
public DefaultSettingsCreator(CMADbContext context) { _context = context; }
public UserRepository(CMADbContext dbContext) : base(dbContext) { _dbContext = dbContext; }
public CategoryRepository(CMADbContext dbContext) : base(dbContext) { _dbContext = dbContext; }
public DefaultEditionCreator(CMADbContext context) { _context = context; }
public DefaultLanguagesCreator(CMADbContext context) { _context = context; }
public ContactRepository(CMADbContext dbContext) : base(dbContext) { _dbContext = dbContext; }
public TenantRoleAndUserBuilder(CMADbContext context, int tenantId) { _context = context; _tenantId = tenantId; }