Export (0) Print
Expand All

DbContext.Dispose Method

Entity Framework 5.0

Calls the protected Dispose method.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Dispose() Calls the protected Dispose method.
Protected method Dispose(Boolean) 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.
Top
Show:
© 2014 Microsoft