语言

ObjectStateManager.GetObjectStateEntry 方法

定义

重载

名称 说明
GetObjectStateEntry(EntityKey)

返回具有指定键的对象或关系项的一个 ObjectStateEntry 。

GetObjectStateEntry(Object)

返回指定对象的一个 ObjectStateEntry 。

GetObjectStateEntry(EntityKey)

返回具有指定键的对象或关系项的一个 ObjectStateEntry 。

public virtual System.Data.Entity.Core.Objects.ObjectStateEntry GetObjectStateEntry(System.Data.Entity.Core.EntityKey key);
abstract member GetObjectStateEntry : System.Data.Entity.Core.EntityKey -> System.Data.Entity.Core.Objects.ObjectStateEntry
override this.GetObjectStateEntry : System.Data.Entity.Core.EntityKey -> System.Data.Entity.Core.Objects.ObjectStateEntry
Public Overridable Function GetObjectStateEntry (key As EntityKey) As ObjectStateEntry

参数

返回

给定的EntityKey对应ObjectStateEntry项。

例外

键为 null 时。

在状态管理器中找不到指定的键时。

中不存在具有指定实体 EntityKey 的 ObjectStateManager 实体。

适用于

GetObjectStateEntry(Object)

返回指定对象的一个 ObjectStateEntry 。

public virtual System.Data.Entity.Core.Objects.ObjectStateEntry GetObjectStateEntry(object entity);
abstract member GetObjectStateEntry : obj -> System.Data.Entity.Core.Objects.ObjectStateEntry
override this.GetObjectStateEntry : obj -> System.Data.Entity.Core.Objects.ObjectStateEntry
Public Overridable Function GetObjectStateEntry (entity As Object) As ObjectStateEntry

参数

entity
Object

Object检索ObjectStateEntry到的所属位置。

返回

给定的Object对应ObjectStateEntry项。

例外

适用于