Beispiel #1
0
 public AdvancedQuery(IMonDatabase db, string accountId)
 {
     this.DB    = db;
     this.Query = db.GetCollection <TModel>().MongoCollection
                  .Find(x => x.Account.Id.Equals(accountId))
                  .ToEnumerable()
                  .AsQueryable();
 }
Beispiel #2
0
        public TModel Concrete(IMonDatabase database)
        {
            if (database == null)
            {
                throw new ArgumentNullException(nameof(database));
            }

            return(Concrete(database.GetCollection <TModel>()));
        }