EntityKey 建構函式 (String, IEnumerable<KeyValuePair<String, Object>>)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 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
由 EntityContainer 名稱限定的實體 EntitySet 名稱。
- entityKeyValues
類型:System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>
可識別實體的索引鍵值組。