共用方式為


RelationalOptionsExtension.Connection 屬性

定義

如果使用 DbConnection 連接字串,而不是完整的連線物件,則 null 為 。

public virtual System.Data.Common.DbConnection Connection { get; set; }
public virtual System.Data.Common.DbConnection Connection { get; }
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

屬性值

適用於