/// <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); }
/// <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)); }
/// <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)); }