public void ShouldCreateLessThanExpression() { var factory = new DbExpressionFactory(); DbBinaryExpression binaryExpression; binaryExpression = factory.LessThan(factory.Constant(1), factory.Constant(2)); ValidateBinaryExpression(binaryExpression, DbBinaryExpressionType.LessThan); }
/// <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)); }