EntityKey.NoEntitySetKey 属性
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 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。