Beispiel #1
0
 public Task <long> Count <TDoc>(IMartenQueryable <TDoc> queryable)
 {
     return(AddItem(queryable.ToLinqQuery().ToCount <long>(), null));
 }
Beispiel #2
0
        public Task <T> SingleOrDefault <T>(IMartenQueryable <T> queryable)
        {
            var query = queryable.ToLinqQuery();

            return(AddItem(OneResultHandler <T> .SingleOrDefault(query), queryable.Statistics));
        }
Beispiel #3
0
 public Task <bool> Any <TDoc>(IMartenQueryable <TDoc> queryable)
 {
     return(AddItem(queryable.ToLinqQuery().ToAny(), null));
 }