共用方式為


EntityKey.EntityNotValidKey 屬性

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

取得單一 EntityKey,識別失敗 TREAT 所產生的實體。

命名空間:  System.Data.Entity.Core
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")> _
Public Shared ReadOnly Property EntityNotValidKey As EntityKey 
    Get
'用途
Dim value As EntityKey 

value = EntityKey.EntityNotValidKey
[SuppressMessageAttribute("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public static EntityKey EntityNotValidKey { get; }
[SuppressMessageAttribute(L"Microsoft.Security", L"CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
public:
static property EntityKey^ EntityNotValidKey {
    EntityKey^ get ();
}
[<SuppressMessageAttribute("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")>]
static member EntityNotValidKey : EntityKey
static function get EntityNotValidKey () : EntityKey

屬性值

類型:System.Data.Entity.Core.EntityKey
單一 EntityKey,可用於識別失敗 TREAT 所產生的實體。

請參閱

參考

EntityKey 類別

System.Data.Entity.Core 命名空間