共用方式為


RelationalConnection.OpenDbConnection(Boolean) Method

Definition

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

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

Parameters

errorsExpected
Boolean

Indicates if the connection errors are expected and should be logged as debug message.

Applies to