예제 #1
0
 public PageRepository(IPagesDbContext dbContext)
 {
     pageDocuments       = dbContext.Pages;
     contentDocuments    = dbContext.Contents;
     recyclebinDocuments = dbContext.PageRecyclebin;
     editDocuments       = dbContext.PageEditSessions;
     urlDocuments        = dbContext.PageUrls;
 }
예제 #2
0
        public PageCollectionRepository(IPagesDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException(nameof(dbContext));
            }

            documents = dbContext.PageCollections;
        }
예제 #3
0
        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;
 }
예제 #5
0
 public SetupMigration(IPagesDbContext dbContext)
 {
     this.dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
 }