public static void SeedHostDb(MyCmsDbContext 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 TenantRoleAndUserBuilder(MyCmsDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public LayoutCrud(IHttpContextAccessor httpAccessor) { _dbContext = (MyCmsDbContext)httpAccessor.HttpContext.RequestServices.GetService(typeof(MyCmsDbContext)); }
/// <summary> /// Feel-Free /// </summary> /// <param name="db"></param> public PageGroupRepository(MyCmsDbContext db) { _db = db; }
public DefaultSettingsCreator(MyCmsDbContext context) { _context = context; }
public HostRoleAndUserCreator(MyCmsDbContext context) { _context = context; }
public DefaultLanguagesCreator(MyCmsDbContext context) { _context = context; }
public InitialHostDbBuilder(MyCmsDbContext context) { _context = context; }
public DefaultTenantBuilder(MyCmsDbContext context) { _context = context; }
public DefaultEditionCreator(MyCmsDbContext context) { _context = context; }
public PageRepoitory(MyCmsDbContext db) { _db = db; }