public static Task <IPageResult <TEntity> > PageAsync <TKey, TEntity>(this IQueryStore <TKey, TEntity> queryStore, IStorageDbConnection conn, int skip, int take, IEnumerable <Expression <Func <TEntity, object> > > selectFields, IDbTransaction tr, CancellationToken cancellationToken) where TKey : IEquatable <TKey> where TEntity : class, IEntity <TKey> { if (queryStore == null) { throw new ArgumentNullException(nameof(queryStore)); } return(queryStore.PageAsync(conn, skip, take, selectFields, WhereClauseResult.Null, OrderbyClauseResult.Null, tr, cancellationToken)); }
public static Task <IPageResult <TEntity> > PageAsync <TKey, TEntity>(this IQueryStore <TKey, TEntity> queryStore, IStorageDbConnection conn, int skip, int take, IDbTransaction tr) where TKey : IEquatable <TKey> where TEntity : class, IEntity <TKey> { if (queryStore == null) { throw new ArgumentNullException(nameof(queryStore)); } return(queryStore.PageAsync(conn, skip, take, null, WhereClauseResult.Null, OrderbyClauseResult.Null, tr, default(CancellationToken))); }