DbExpressionBuilder.And Method (DbExpression, DbExpression)

 

Creates an DbAndExpression that performs the logical And of the left and right arguments.

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

public static DbAndExpression And(
	this DbExpression left,
	DbExpression right
)

Parameters

left
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

A Boolean expression that specifies the left argument.

right
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

A Boolean expression that specifies the right argument.

Return Value

Type: System.Data.Entity.Core.Common.CommandTrees.DbAndExpression

A new DbAndExpression with the specified arguments.

Exception Condition
ArgumentNullException

left or right is null.

ArgumentException

left or right does not have a Boolean result type.