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

            binaryExpression = factory.Or(factory.Constant(1), factory.Constant(2));
            ValidateBinaryExpression(binaryExpression, DbBinaryExpressionType.Or);
        }
 public void ShouldCreateOrExpression()
 {
     var factory = new DbExpressionFactory();
     DbBinaryExpression binaryExpression;
     binaryExpression = factory.Or(factory.Constant(1), factory.Constant(2));
     ValidateBinaryExpression(binaryExpression, DbBinaryExpressionType.Or);
 }
Beispiel #3
0
 /// <summary>
 /// Implements the operator |;.
 /// </summary>
 /// <param name="leftExpression">The left expression.</param>
 /// <param name="rightExpression">The right expression.</param>
 /// <returns>The result of the operator.</returns>
 public static DbExpression operator |(DbExpression leftExpression, DbExpression rightExpression)
 {
     return(ExpressionFactory.Or(leftExpression, rightExpression));
 }