Exemplo n.º 1
0
		/// <summary>
		/// Interprets the binary operator.
		/// </summary>
		/// <param name="action">The action.</param>
		/// <param name="binaryOperator">The binary operator.</param>
		/// <param name="entityParameter">The expression entity parameter.</param>
		/// <returns>The interpreted condition.</returns>
		private Expression InterpretOperator(Func<Expression, Expression, Expression> action,
			QueryFilterBinaryOperator binaryOperator, ParameterExpression entityParameter)
		{
			return binaryOperator != null
				? action(Interpret(binaryOperator.LeftOperand, entityParameter),
				Interpret(binaryOperator.RightOperand, entityParameter))
				: null;
		}
Exemplo n.º 2
0
        /// <summary>
        /// Interprets the binary operator.
        /// </summary>
        /// <param name="action">The action.</param>
        /// <param name="binaryOperator">The binary operator.</param>
        /// <param name="entityParameter">The expression entity parameter.</param>
        /// <returns>The interpreted condition.</returns>
        private Expression InterpretOperator(Func<Expression, Expression, Expression> action,
			QueryFilterBinaryOperator binaryOperator, ParameterExpression entityParameter)
        {
            return binaryOperator != null
                ? action(Interpret(binaryOperator.LeftOperand, entityParameter),
                Interpret(binaryOperator.RightOperand, entityParameter))
                : null;
        }