Ejemplo n.º 1
0
 /// <summary>
 /// 指定要包括在查询结果中的关联对象。
 /// </summary>
 /// <param name="fnMember">要包含的属性的表达式。</param>
 /// <returns></returns>
 public EntityPersister <TEntity> Include(Expression <Func <TEntity, object> > fnMember)
 {
     context.IncludeWith(fnMember);
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 指定要包括在查询结果中的关联对象。
 /// </summary>
 /// <param name="fnMember">要包含的属性的表达式。</param>
 /// <returns></returns>
 public EntityRepository <TEntity> Include(Expression <Func <TEntity, object> > fnMember)
 {
     context.IncludeWith(fnMember);
     return(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 指定要包括在查询结果中的关联对象。
 /// </summary>
 /// <typeparam name="TEntity"></typeparam>
 /// <param name="fnMember">要包含的属性的表达式。</param>
 /// <returns></returns>
 public EntityContext Include <TEntity>(Expression <Func <TEntity, object> > fnMember) where TEntity : IEntity
 {
     context.IncludeWith(fnMember);
     return(this);
 }