This documentation is archived and is not being maintained.

EntityKey Members

Visual Studio 2008

Provides a durable reference to an object that is an instance of an entity type.

The EntityKey type exposes the following members.

Public method EntityKey Overloaded. Initializes a new instance of the EntityKey class.

Public method Equals Overloaded. Returns a value that indicates whether this instance is equal to a specified object.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEntitySet Gets the entity set for this entity key from the given metadata workspace.
Public method GetHashCode Serves as a hash function for the current EntityKey object. GetHashCode is suitable for hashing algorithms and data structures such as a hash table. (Overrides Object.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnDeserialized Helper method that is used to deserialize an EntityKey.
Public method OnDeserializing Helper method that is used to deserialize an EntityKey.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Public operator Static member Equality Compares two EntityKey objects.
Public operator Static member Inequality Compares two EntityKey objects.

Public field Static member EntityNotValidKey A simple EntityKey identifying an entity that resulted from a failed TREAT operation.
Public field Static member NoEntitySetKey A singleton EntityKey by which a read-only entity is identified.

Public property EntityContainerName Gets or sets the name of the entity container.
Public property EntityKeyValues Gets or sets the key values associated with this EntityKey.
Public property EntitySetName Gets or sets the name of the entity set.
Public property IsTemporary Gets a value that indicates whether the EntityKey is temporary.