Condividi tramite


Operatore EntityKey.Inequality

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Indica un valore che specifica se le due chiavi non sono uguali.

Spazio dei nomi:  System.Data.Entity.Core
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Shared Operator <> ( _
    key1 As EntityKey, _
    key2 As EntityKey _
) As Boolean
'Utilizzo
Dim key1 As EntityKey 
Dim key2 As EntityKey 
Dim returnValue As Boolean 

returnValue = (key1 <> key2)
public static bool operator !=(
    EntityKey key1,
    EntityKey key2
)
public:
static bool operator !=(
    EntityKey^ key1, 
    EntityKey^ key2
)
static let inline(<>)
        key1:EntityKey * 
        key2:EntityKey  : bool
JScript supports the use of overloaded operators, but not the declaration of new ones.

Parametri

Valore restituito

Tipo: System.Boolean
true se le due chiavi non sono uguali; in caso contrario, false.

Vedere anche

Riferimento

EntityKey Classe

Spazio dei nomi System.Data.Entity.Core