ObjectQuery<'T>.Execute Method (MergeOption)
Executes the object query with the specified merge option.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The default merge option for object queries is AppendOnly. For more information, see Identity Resolution, State Management, and Change Tracking.
This example is based on the AdventureWorks Sales Model. The example returns an ObjectResult<'T> from Execute method. Then it gets an enumerator and iterates through the query results. At the end it releases the enumerator and the ObjectResult<'T> object.
Available since 3.5