Share via


DbExpressionBuilder.And(DbExpression, DbExpression) Method

Definition

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

public static System.Data.Entity.Core.Common.CommandTrees.DbAndExpression And (this System.Data.Entity.Core.Common.CommandTrees.DbExpression left, System.Data.Entity.Core.Common.CommandTrees.DbExpression right);
static member And : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbAndExpression
<Extension()>
Public Function And (left As DbExpression, right As DbExpression) As DbAndExpression

Parameters

left
DbExpression

A Boolean expression that specifies the left argument.

right
DbExpression

A Boolean expression that specifies the right argument.

Returns

A new DbAndExpression with the specified arguments.

Exceptions

left or right is null.

left and right does not have a Boolean result type.

Applies to