示例#1
0
 /// <summary>
 /// Visits the entity.
 /// </summary>
 /// <param name="entity">The entity.</param>
 /// <returns></returns>
 protected virtual Expression VisitEntity(EntityExpression entity)
 {
     this.Visit(entity.Expression);
     return(entity);
 }
示例#2
0
 /// <summary>
 /// Compares the entity.
 /// </summary>
 /// <param name="x">The x.</param>
 /// <param name="y">The y.</param>
 /// <returns></returns>
 protected virtual bool CompareEntity(EntityExpression x, EntityExpression y)
 {
     return(x.Entity == y.Entity && this.Compare(x.Expression, y.Expression));
 }
示例#3
0
        /// <summary>
        /// Visits the entity.
        /// </summary>
        /// <param name="entity">The entity.</param>
        /// <returns></returns>
        protected virtual Expression VisitEntity(EntityExpression entity)
        {
            var exp = this.Visit(entity.Expression);

            return(this.UpdateEntity(entity, exp));
        }