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:
System::Collections::Generic::IEnumerable<System::Data::Objects::ObjectStateEntry ^> ^ GetObjectStateEntries(System::Data::EntityState state);
public System.Collections.Generic.IEnumerable<System.Data.Objects.ObjectStateEntry> GetObjectStateEntries (System.Data.EntityState state);
member this.GetObjectStateEntries : System.Data.EntityState -> seq<System.Data.Objects.ObjectStateEntry>
Public 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.
Remarks
The EntityState is a bit field, so state entries for multiple states can be retrieved in one call by doing a bitwise OR of more than one EntityState values.