Exemplo n.º 1
0
 /// <summary>
 /// 指定要包括在查询结果中的关联对象。
 /// </summary>
 /// <param name="fnMember">要包含的属性的表达式。</param>
 /// <returns></returns>
 public EntityRepository <TEntity> Include(Expression <Func <TEntity, object> > fnMember)
 {
     repositoryProxy.As <IQueryPolicyExecutor <TEntity> >(s => s.IncludeWith(fnMember));
     return(this);
 }