예제 #1
0
 public static IMongoQueryable <T> Limit <T>(this IMongoQueryable <T> collection, PagedQueryBase query)
 => collection.Limit(query.Page, query.Results);
예제 #2
0
 public static async Task <PagedResult <T> > PaginateAsync <T>(this IMongoQueryable <T> collection, PagedQueryBase query)
 => await collection.PaginateAsync(query.Page, query.Results);