ObjectStateManager.GetObjectStateEntries(EntityState) Method

Definition

Returns a collection of ObjectStateEntry objects for objects or relationships with the given state.

public virtual System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Objects.ObjectStateEntry> GetObjectStateEntries (System.Data.Entity.EntityState state);
abstract member GetObjectStateEntries : System.Data.Entity.EntityState -> seq<System.Data.Entity.Core.Objects.ObjectStateEntry>
override this.GetObjectStateEntries : System.Data.Entity.EntityState -> seq<System.Data.Entity.Core.Objects.ObjectStateEntry>
Public Overridable Function GetObjectStateEntries (state As EntityState) As IEnumerable(Of ObjectStateEntry)

Parameters

state
EntityState

An EntityState used to filter the returned ObjectStateEntry objects.

Returns

A collection of ObjectStateEntry objects in the given EntityState .

Exceptions

When state is Detached.

Applies to