共用方式為


RelationalConnection.CloseDbConnection Method

Definition

Template method that by default calls Close() but can be overridden by providers to make a different call instead.

protected virtual void CloseDbConnection ();
abstract member CloseDbConnection : unit -> unit
override this.CloseDbConnection : unit -> unit
Protected Overridable Sub CloseDbConnection ()

Applies to