EntityKey 构造函数 (String, IEnumerable<KeyValuePair<String, Object>>)
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
使用给定的键值初始化 EntityKey 类的新实例。
命名空间: System.Data.Entity.Core
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Sub New ( _
qualifiedEntitySetName As String, _
entityKeyValues As IEnumerable(Of KeyValuePair(Of String, Object)) _
)
用法
Dim qualifiedEntitySetName As String
Dim entityKeyValues As IEnumerable(Of KeyValuePair(Of String, Object))
Dim instance As New EntityKey(qualifiedEntitySetName, _
entityKeyValues)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public EntityKey(
string qualifiedEntitySetName,
IEnumerable<KeyValuePair<string, Object>> entityKeyValues
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
EntityKey(
String^ qualifiedEntitySetName,
IEnumerable<KeyValuePair<String^, Object^>>^ entityKeyValues
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
new :
qualifiedEntitySetName:string *
entityKeyValues:IEnumerable<KeyValuePair<string, Object>> -> EntityKey
public function EntityKey(
qualifiedEntitySetName : String,
entityKeyValues : IEnumerable<KeyValuePair<String, Object>>
)
参数
- qualifiedEntitySetName
类型:System.String
实体的 EntitySet 名称,由 EntityContainer 名称限定。
- entityKeyValues
类型:System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>
标识实体的键-值对。