ObjectStateManager.GetObjectStateEntries Method (EntityState)
Returns a collection of ObjectStateEntry objects for objects or relationships with the given state.
Assembly: EntityFramework (in EntityFramework.dll)
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. |