EdmFunctions.BitwiseXor Method (DbExpression, DbExpression)
Creates a DbFunctionExpression that invokes the canonical 'BitwiseXor' function with the specified arguments, which must have the same integer numeric result type. The result type of the expression is this same type.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbFunctionExpression BitwiseXor( this DbExpression value1, DbExpression value2 )
Parameters
- value1
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the first operand.
- value2
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the second operand.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that returns the value produced by performing the bitwise XOR (exclusive OR) of value1 and value2.
Exception | Condition |
---|---|
ArgumentNullException | value1 or value2 is null. |
ArgumentException | No overload of the canonical ‘BitwiseXor’ function accepts arguments with the result types ofvalue1 and value2. |