DbExpressionBuilder.Equal(DbExpression, DbExpression) Metodo

Definizione

Crea un nuovo oggetto DbComparisonExpression che verifica l'uguaglianza fra l'argomento a sinistra e quello a destra.Creates a new DbComparisonExpression that compares the left and right arguments for equality.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbComparisonExpression ^ Equal(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbComparisonExpression Equal (this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member Equal : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbComparisonExpression
<Extension()>
Public Function Equal (left As DbExpression, right As DbExpression) As DbComparisonExpression

Parametri

left
DbExpression

Espressione che specifica l'argomento a sinistra.An expression that specifies the left argument.

right
DbExpression

Espressione che specifica l'argomento a destra.An expression that specifies the right argument.

Restituisce

DbComparisonExpression

Nuovo DbComparisonExpression che rappresenta il confronto di uguaglianza.A new DbComparisonExpression representing the equality comparison.

Eccezioni

left o right è null.left or right is null.

Non esiste alcun tipo di risultato confrontabile in termini di uguaglianza comune tra left e right.No common equality-comparable result type exists between left and right.

Si applica a