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

属性值

适用于