RelationalOptionsExtension.Connection Property

Definition

The DbConnection, or null if a connection string was used instead of the full connection object.

public virtual System.Data.Common.DbConnection Connection { get; set; }
public virtual System.Data.Common.DbConnection Connection { get; }
member this.Connection : System.Data.Common.DbConnection with get, set
member this.Connection : System.Data.Common.DbConnection
Public Overridable Property Connection As DbConnection
Public Overridable ReadOnly Property Connection As DbConnection

Property Value

DbConnection

Applies to