EntityKey.NoEntitySetKey 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得單一 EntityKey,可用於識別唯讀實體。
命名空間: System.Data.Entity.Core
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")> _
Public Shared ReadOnly Property NoEntitySetKey As EntityKey
Get
'用途
Dim value As EntityKey
value = EntityKey.NoEntitySetKey
[SuppressMessageAttribute("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public static EntityKey NoEntitySetKey { get; }
[SuppressMessageAttribute(L"Microsoft.Security", L"CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public:
static property EntityKey^ NoEntitySetKey {
EntityKey^ get ();
}
[<SuppressMessageAttribute("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")>]
static member NoEntitySetKey : EntityKey
static function get NoEntitySetKey () : EntityKey
屬性值
類型:System.Data.Entity.Core.EntityKey
單一 EntityKey,可用於識別唯讀實體。