Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Dispose Method (Boolean)
Collapse the table of content
Expand the table of content

DbContext::Dispose Method (Boolean)

Entity Framework 5.0

Disposes the context. The underlying ObjectContext is also disposed if it was created is by this context or ownership was passed to this context when this context was created. The connection to the database (DbConnection object) is also disposed if it was created is by this context or ownership was passed to this context when this context was created.

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

protected:
virtual void Dispose(
	bool disposing
)

Parameters

disposing
Type: System::Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Show:
© 2015 Microsoft