RelationalConnection.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(Boolean) |
Opens the connection to the database. |
Open() |
Opens the connection to the database. |
Open(Boolean)
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
Opens the connection to the database.
public virtual bool Open (bool errorsExpected = false);
abstract member Open : bool -> bool
override this.Open : bool -> bool
Public Overridable Function Open (Optional errorsExpected As Boolean = false) As Boolean
Parameters
- errorsExpected
- Boolean
Indicates if the connection errors are expected and should be logged as debug message.
Returns
true
if the underlying connection was actually opened; false
otherwise.
Implements
Applies to
Open()
Opens the connection to the database.
public virtual void Open ();
abstract member Open : unit -> unit
override this.Open : unit -> unit
Public Overridable Sub Open ()
Implements
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework