Share via


EntityKey.Equality(EntityKey, EntityKey) Operator

Definition

Compares two EntityKey objects.

public static bool operator == (System.Data.Entity.Core.EntityKey key1, System.Data.Entity.Core.EntityKey key2);
static member ( = ) : System.Data.Entity.Core.EntityKey * System.Data.Entity.Core.EntityKey -> bool
Public Shared Operator == (key1 As EntityKey, key2 As EntityKey) As Boolean

Parameters

key1
EntityKey

A EntityKey to compare.

key2
EntityKey

A EntityKey to compare.

Returns

true if the key1 and key2 values are equal; otherwise, false.

Applies to