EntityKey Class

 

Represents an identifier for an entity.

Namespace:   System.Data.Entity.Core
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Core.EntityKey

[SerializableAttribute]
[DataContractAttribute(IsReference = true)]
[DebuggerDisplayAttribute("{ConcatKeyValue()}")]
public sealed class EntityKey : IEquatable<EntityKey>

NameDescription
System_CAPS_pubmethodEntityKey()

Initializes a new instance of the EntityKey class.

System_CAPS_pubmethodEntityKey(String, IEnumerable<EntityKeyMember>)

Initializes a new instance of the EntityKey class with the given key values.

System_CAPS_pubmethodEntityKey(String, IEnumerable<KeyValuePair<String, Object>>)

Initializes a new instance of the EntityKey class with the given key values.

System_CAPS_pubmethodEntityKey(String, String, Object)

Initializes a new instance of the EntityKey class with the given single key name and value.

NameDescription
System_CAPS_pubpropertyEntityContainerName

Gets or sets the EntityContainer name identifying the entity container that contains the entity.

System_CAPS_pubpropertyEntityKeyValues

Gets or sets the key values that identify the entity.

System_CAPS_pubpropertySystem_CAPS_staticEntityNotValidKey

Gets a singleton EntityKey identifying an entity resulted from a failed TREAT.

System_CAPS_pubpropertyEntitySetName

Gets or sets the EntitySet name identifying the entity set that contains the entity.

System_CAPS_pubpropertyIsTemporary

Gets a value indicating whether this key is a temporary key.

System_CAPS_pubpropertySystem_CAPS_staticNoEntitySetKey

Gets a singleton EntityKey by which a read-only entity is identified.

NameDescription
System_CAPS_pubmethodEquals(EntityKey)

Indicates a value whether this instance is equal to the given key.

System_CAPS_pubmethodEquals(Object)

Indicates a value whether this instance is equal to the given key.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodGetEntitySet(MetadataWorkspace)

Gets the entity set for this entity key from the given metadata workspace, by entity container name and entity set name.

System_CAPS_pubmethodGetHashCode()

Returns a value-based hash code, to allow EntityKey to be used in hash tables.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodOnDeserialized(StreamingContext)

Calls after this EntityKey has been deserialized.

System_CAPS_pubmethodOnDeserializing(StreamingContext)

Calls after this EntityKey has been deserialized.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(EntityKey, EntityKey)

Indicates a value whether the two keys are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(EntityKey, EntityKey)

Indicates a value whether the two keys are not equal.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.