ObjectResult<T>::Dispose Method ()
.NET Framework (current version)
Performs tasks associated with freeing, releasing, or resetting resources.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Closes the DbDataReader, which contains the results of the query.
The example in this topic is based on the AdventureWorks Sales Model. The example returns an ObjectResult<T> from the 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.
.NET Framework
Available since 3.5
Available since 3.5
Show: