Пример #1
0
 public static SqlExpression operator |(SqlExpression left, SqlExpression right)
 {
     if (left.IsNullReference())
     {
         return(right);
     }
     if (right.IsNullReference())
     {
         return(left);
     }
     if (SqlValidator.IsBooleanExpression(left))
     {
         return(SqlDml.Or(left, right));
     }
     return(SqlDml.BitOr(left, right));
 }