DbContext.Dispose Method

 

Disposes the context.

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

NameDescription
System_CAPS_pubmethodDispose()

Calls the protected Dispose method.

System_CAPS_protmethodDispose(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.

Return to top

DbContext.Dispose Method ()

Calls the protected Dispose method.

abstract Dispose : unit -> unit
override Dispose : unit -> unit
Return to top

DbContext.Dispose Method (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.

abstract Dispose : 
        disposing:bool -> unit
override Dispose : 
        disposing:bool -> unit

Parameters

disposing
Type: System.Boolean

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

Return to top
Show: