Esempio n. 1
0
 internal EntityList QueryListByLinq(IQueryable queryable)
 {
     return(DataQueryer.QueryList(queryable));
 }
Esempio n. 2
0
 /// <summary>
 /// 通过 IQuery 对象来查询实体。
 /// </summary>
 /// <param name="args">The arguments.</param>
 /// <returns></returns>
 /// <exception cref="System.NotSupportedException">使用内存过滤器的同时,不支持提供分页参数。</exception>
 /// <exception cref="System.InvalidProgramException"></exception>
 protected EntityList QueryList(EntityQueryArgs args)
 {
     return(DataQueryer.QueryList(args));
 }
Esempio n. 3
0
 /// <summary>
 /// 通过 linq 来查询实体。
 /// </summary>
 /// <param name="queryable">linq 查询对象。</param>
 /// <param name="paging">分页信息。</param>
 /// <param name="eagerLoad">需要贪婪加载的属性。</param>
 /// <returns></returns>
 /// <exception cref="System.InvalidProgramException"></exception>
 protected EntityList QueryList(IQueryable queryable, PagingInfo paging = null, EagerLoadOptions eagerLoad = null)
 {
     return(DataQueryer.QueryList(queryable, paging, eagerLoad));
 }
Esempio n. 4
0
 /// <summary>
 /// 通过 IQuery 对象来查询实体。
 /// </summary>
 /// <param name="query">查询对象。</param>
 /// <param name="paging">分页信息。</param>
 /// <param name="eagerLoad">需要贪婪加载的属性。</param>
 /// <param name="markTreeFullLoaded">如果某次查询结果是一棵完整的子树,那么必须设置此参数为 true ,才可以把整个树标记为完整加载。</param>
 /// <returns></returns>
 protected EntityList QueryList(IQuery query, PagingInfo paging = null, EagerLoadOptions eagerLoad = null, bool markTreeFullLoaded = false)
 {
     return(DataQueryer.QueryList(query, paging, eagerLoad, markTreeFullLoaded));
 }