ObjectStateManager.GetObjectStateEntries(EntityState) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.