ObjectStateManager.GetObjectStateEntries Method (EntityState)

 

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

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public virtual IEnumerable<ObjectStateEntry> GetObjectStateEntries(
	EntityState state
)

Parameters

state
Type: System.Data.Entity.EntityState

An EntityState used to filter the returned ObjectStateEntry objects.

Return Value

Type: System.Collections.Generic.IEnumerable<ObjectStateEntry>

A collection of ObjectStateEntry objects in the given EntityState .

Exception Condition
ArgumentException

When state is Detached.