public BaseGridFsFileRepository(IMongoClientContext mongoClientcontext)
        {
            mongoClient   = mongoClientcontext.getContext();
            mongoDatabase = mongoClientcontext.getDatabase();

            gridFsBucket = new GridFSBucket(mongoDatabase);
        }
示例#2
0
        public BaseImageRepository(IMongoClientContext mongoClientContext)
        {
            mongoClient   = mongoClientContext.getContext();
            mongoDatabase = mongoClientContext.getDatabase();
            string collection = AttributeFinder.GetAttributeValue <T, MongoTable, string>(z => z.Name);

            if (String.IsNullOrEmpty(collection))
            {
                throw new Exception(Errors.UNDEFINED_COLLECTION);
            }

            Items = mongoDatabase.GetCollection <T>(collection);
        }
 public InviteRepository(IMongoClientContext mongoClientContext) : base(mongoClientContext)
 {
 }
示例#4
0
 public UserRepository(IMongoClientContext mongoClientContext) : base(mongoClientContext)
 {
 }
示例#5
0
 public PostRepository(IMongoClientContext mongoClientContext) : base(mongoClientContext)
 {
 }
 public LikeRepository(IMongoClientContext mongoClientContext) : base(mongoClientContext)
 {
 }
示例#7
0
 public MilestoneRepository(IMongoClientContext mongoClientContext) : base(mongoClientContext)
 {
 }
 public CategoryRepository(IMongoClientContext mongoClientContext) : base(mongoClientContext)
 {
 }