DbExpressionBuilder.And Method (DbExpression, DbExpression)
Creates an DbAndExpression that performs the logical And of the left and right arguments.
Assembly: EntityFramework (in EntityFramework.dll)
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.DbAndExpressionA 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. |