Exemplo n.º 1
0
 /// <summary>
 /// 对指定割开的查询始终附加指定的谓语。
 /// </summary>
 /// <param name="memberQuery"></param>
 /// <returns></returns>
 public EntityRepository <TEntity> Associate(Expression <Func <TEntity, IEnumerable> > memberQuery)
 {
     context.AssociateWith(memberQuery);
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 对关联对象
 /// </summary>
 /// <typeparam name="TEntity"></typeparam>
 /// <param name="memberQuery"></param>
 /// <returns></returns>
 public EntityContext Associate <TEntity>(Expression <Func <TEntity, IEnumerable> > memberQuery) where TEntity : IEntity
 {
     context.AssociateWith(memberQuery);
     return(this);
 }