EntityKey Constructor
Initializes a new instance of the EntityKey class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | EntityKey() | Initializes a new instance of the EntityKey class. |
![]() | EntityKey(String, IEnumerable<EntityKeyMember>) | Initializes a new instance of the EntityKey class with the given key values. |
![]() | EntityKey(String, IEnumerable<KeyValuePair<String, Object>>) | Initializes a new instance of the EntityKey class with the given key values. |
![]() | EntityKey(String, String, Object) | Initializes a new instance of the EntityKey class with the given single key name and value. |
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.
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.