IRelationalConnection.Open 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.
Overloads
Open() |
Opens the connection to the database. |
Open(Boolean) |
Opens the connection to the database. |
Open()
Opens the connection to the database.
public void Open ();
abstract member Open : unit -> unit
Public Sub Open ()
Applies to
Open(Boolean)
Opens the connection to the database.
public bool Open (bool errorsExpected = false);
abstract member Open : bool -> bool
Public Function Open (Optional errorsExpected As Boolean = false) As Boolean
Parameters
- errorsExpected
- Boolean
Indicate if the connection errors are expected and should be logged as debug message.
Returns
true
if the underlying connection was actually opened; false
otherwise.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor