ObjectResult<T>::Dispose Method ()

 

Performs tasks associated with freeing, releasing, or resetting resources.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
virtual void Dispose() override

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: