Share via


RelationalConnection.ResetState(Boolean) Method

Definition

Resets the connection state. Called by Dispose() and ResetState().

protected virtual void ResetState (bool disposeDbConnection);
abstract member ResetState : bool -> unit
override this.ResetState : bool -> unit
Protected Overridable Sub ResetState (disposeDbConnection As Boolean)

Parameters

disposeDbConnection
Boolean

Whether the underlying DbConnection should be disposed, assuming it is owned by this RelationalConnection. If false, the existing DbConnection may get reused.

Applies to