EntityKey Constructor

 

Initializes a new instance of the EntityKey class.

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

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.


EntityKey Constructor ()

Initializes a new instance of the EntityKey class.

public EntityKey()

EntityKey Constructor (String, IEnumerable<EntityKeyMember>)

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

public EntityKey(
	string qualifiedEntitySetName,
	IEnumerable<EntityKeyMember> entityKeyValues
)

Parameters

qualifiedEntitySetName
Type: System.String

The EntitySet name, qualified by the EntityContainer name, of the entity.

entityKeyValues
Type: System.Collections.Generic.IEnumerable<EntityKeyMember>

The key-value pairs that identify the entity.


EntityKey Constructor (String, IEnumerable<KeyValuePair<String, Object>>)

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

[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public EntityKey(
	string qualifiedEntitySetName,
	IEnumerable<KeyValuePair<string, object>> entityKeyValues
)

Parameters

qualifiedEntitySetName
Type: System.String

The EntitySet name, qualified by the EntityContainer name, of the entity.

entityKeyValues
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>

The key-value pairs that identify the entity.


EntityKey Constructor (String, String, Object)

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

public EntityKey(
	string qualifiedEntitySetName,
	string keyName,
	object keyValue
)

Parameters

qualifiedEntitySetName
Type: System.String

The EntitySet name, qualified by the EntityContainer name, of the entity.

keyName
Type: System.String

The key name that identifies the entity.

keyValue
Type: System.Object

The key value that identifies the entity.