RelationalConnection.OpenDbConnection(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework