IRelationalConnection.DbConnection Property
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.
Gets or sets the underlying DbConnection used to connect to the database.
public System.Data.Common.DbConnection DbConnection { get; }
public virtual System.Data.Common.DbConnection DbConnection { get; set; }
public System.Data.Common.DbConnection DbConnection { get; set; }
member this.DbConnection : System.Data.Common.DbConnection
member this.DbConnection : System.Data.Common.DbConnection with get, set
Public ReadOnly Property DbConnection As DbConnection
Public Overridable Property DbConnection As DbConnection
Public Property DbConnection As DbConnection
Property Value
Remarks
The connection can only be changed when the existing connection, if any, is not open.
Note that the connection must be disposed by application code since it was not created by Entity Framework.
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