EntityKey Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EntityKey() |
Initializes a new instance of the EntityKey class. |
EntityKey(String, IEnumerable<KeyValuePair<String,Object>>) |
Initializes a new instance of the EntityKey class with an entity set name and a generic KeyValuePair collection. |
EntityKey(String, IEnumerable<EntityKeyMember>) |
Initializes a new instance of the EntityKey class with an entity set name and an IEnumerable<T> collection of EntityKeyMember objects. |
EntityKey(String, String, Object) |
Initializes a new instance of the EntityKey class with an entity set name and specific entity key pair. |
EntityKey()
Initializes a new instance of the EntityKey class.
public EntityKey ();
Public Sub New ()
Applies to
EntityKey(String, IEnumerable<KeyValuePair<String,Object>>)
Initializes a new instance of the EntityKey class with an entity set name and a generic KeyValuePair collection.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public EntityKey (string qualifiedEntitySetName, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> entityKeyValues);
new System.Data.Entity.Core.EntityKey : string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Data.Entity.Core.EntityKey
Public Sub New (qualifiedEntitySetName As String, entityKeyValues As IEnumerable(Of KeyValuePair(Of String, Object)))
Parameters
- qualifiedEntitySetName
- String
A String that is the entity set name qualified by the entity container name.
- entityKeyValues
- IEnumerable<KeyValuePair<String,Object>>
A generic KeyValuePair collection.Each key/value pair has a property name as the key and the value of that property as the value. There should be one pair for each property that is part of the EntityKey . The order of the key/value pairs is not important, but each key property should be included. The property names are simple names that are not qualified with an entity type name or the schema name.
- Attributes
Applies to
EntityKey(String, IEnumerable<EntityKeyMember>)
Initializes a new instance of the EntityKey class with an entity set name and an IEnumerable<T> collection of EntityKeyMember objects.
public EntityKey (string qualifiedEntitySetName, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.EntityKeyMember> entityKeyValues);
new System.Data.Entity.Core.EntityKey : string * seq<System.Data.Entity.Core.EntityKeyMember> -> System.Data.Entity.Core.EntityKey
Public Sub New (qualifiedEntitySetName As String, entityKeyValues As IEnumerable(Of EntityKeyMember))
Parameters
- qualifiedEntitySetName
- String
A String that is the entity set name qualified by the entity container name.
- entityKeyValues
- IEnumerable<EntityKeyMember>
An IEnumerable<T> collection of EntityKeyMember objects with which to initialize the key.
Applies to
EntityKey(String, String, Object)
Initializes a new instance of the EntityKey class with an entity set name and specific entity key pair.
public EntityKey (string qualifiedEntitySetName, string keyName, object keyValue);
new System.Data.Entity.Core.EntityKey : string * string * obj -> System.Data.Entity.Core.EntityKey
Public Sub New (qualifiedEntitySetName As String, keyName As String, keyValue As Object)
Parameters
- qualifiedEntitySetName
- String
A String that is the entity set name qualified by the entity container name.
Applies to
Entity Framework