public IQueryable <TEntity> GetByQuery( Expression <Func <TEntity, bool> > predicate, string FieldSort, bool FieldOption) { return(BaseDA <TEntity, TId> .Sort <TEntity>(((IQueryable <TEntity>) this.dbSet).Where <TEntity>(predicate), FieldSort, FieldOption, ref this.TotalRecord)); }
public IQueryable <TEntity> GetByQuery(string FieldSort, bool FieldOption) { return(BaseDA <TEntity, TId> .Sort <TEntity>((IQueryable <TEntity>) this.dbSet, FieldSort, FieldOption, ref this.TotalRecordAll)); }