コード例 #1
0
        public void ShouldCreateLessThanExpression()
        {
            var factory = new DbExpressionFactory();
            DbBinaryExpression binaryExpression;

            binaryExpression = factory.LessThan(factory.Constant(1), factory.Constant(2));
            ValidateBinaryExpression(binaryExpression, DbBinaryExpressionType.LessThan);
        }
コード例 #2
0
 public void ShouldCreateLessThanExpression()
 {
     var factory = new DbExpressionFactory();
     DbBinaryExpression binaryExpression;
     binaryExpression = factory.LessThan(factory.Constant(1), factory.Constant(2));
     ValidateBinaryExpression(binaryExpression, DbBinaryExpressionType.LessThan);
 }
コード例 #3
0
 /// <summary>
 /// Implements the less than 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.LessThan(leftExpression, rightExpression));
 }