public void ShouldCreateLessThanOrEqualExpression()
        {
            var factory = new DbExpressionFactory();
            DbBinaryExpression binaryExpression;

            binaryExpression = factory.LessThanOrEqual(factory.Constant(1), factory.Constant(2));
            ValidateBinaryExpression(binaryExpression, DbBinaryExpressionType.LessThanOrEqual);
        }
 public void ShouldCreateLessThanOrEqualExpression()
 {
     var factory = new DbExpressionFactory();
     DbBinaryExpression binaryExpression;
     binaryExpression = factory.LessThanOrEqual(factory.Constant(1), factory.Constant(2));
     ValidateBinaryExpression(binaryExpression, DbBinaryExpressionType.LessThanOrEqual);
 }
Beispiel #3
0
 /// <summary>
 /// Implements the less than or equal operator.
 /// </summary>
 /// <param name="leftExpression">The left expression.</param>
 /// <param name="rightExpression">The right expression.</param>
 /// <returns>A <see cref="DbExpression"/> instance.</returns>
 public static DbExpression operator <=(DbExpression leftExpression, DbExpression rightExpression)
 {
     return(ExpressionFactory.LessThanOrEqual(leftExpression, rightExpression));
 }