public PageRepository(IPagesDbContext dbContext) { pageDocuments = dbContext.Pages; contentDocuments = dbContext.Contents; recyclebinDocuments = dbContext.PageRecyclebin; editDocuments = dbContext.PageEditSessions; urlDocuments = dbContext.PageUrls; }
public PageCollectionRepository(IPagesDbContext dbContext) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext)); } documents = dbContext.PageCollections; }
public PageFileRepository(IPagesDbContext dbContext) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext)); } files = new FileBucket(dbContext.Database, new GridFSBucketOptions { BucketName = "BrandUpPages", DisableMD5 = false }); }
public PageContentRepository(IPagesDbContext dbContext) { documents = dbContext.PageEditSessions; contentDocuments = dbContext.Contents; }
public SetupMigration(IPagesDbContext dbContext) { this.dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); }