EdmFunctions.BitwiseAnd Method (DbExpression, DbExpression)

 

Creates a DbFunctionExpression that invokes the canonical 'BitwiseAnd' function with the specified arguments, which must have the same integer numeric result type. The result type of the expression is this same type.

Namespace:   System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly:  EntityFramework (in EntityFramework.dll)

public static DbFunctionExpression BitwiseAnd(
	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.DbFunctionExpression

A new DbFunctionExpression that returns the value produced by performing the bitwise AND of value1 and value2.

Exception Condition
ArgumentNullException

value1 or value2 is null.

ArgumentException

No overload of the canonical ‘BitwiseAnd’ function accepts arguments with the result types of value1 and value2.