Share via


EntityKey.EntityNotValidKey 属性

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 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
标识因失败的 TREAT 操作产生的实体的单一 EntityKey

请参阅

参考

EntityKey 类

System.Data.Entity.Core 命名空间