Ejemplo n.º 1
0
 protected override System.Linq.Expressions.Expression VisitBinary(System.Linq.Expressions.BinaryExpression b)
 {
     this._CurrentMemberInfo = null;
     this._CurrentMemberType = null;
     this._strSql.Append("(");
     this.Visit(b.Left);
     this._LastestOperator = new System.Linq.Expressions.ExpressionType?(b.NodeType);
     this._strSql.Append(" " + DMSOperators.FormatBinaryOperator(this._LastestOperator) + " ");
     this.Visit(b.Right);
     this._strSql.Append(")");
     return(b);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="m"></param>
 /// <returns></returns>
 protected virtual Expression HandleLessThan(MethodCallExpression m)
 {
     return(this.CompareFunc(m, DMSOperators.FormatBinaryOperator(ExpressionType.LessThan)));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="m"></param>
 /// <returns></returns>
 protected virtual Expression HandleGreaterThanOrEqual(MethodCallExpression m)
 {
     return(this.CompareFunc(m, DMSOperators.FormatBinaryOperator(ExpressionType.GreaterThanOrEqual)));
 }