共用方式為


EntityTransaction.DbConnection 屬性

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

擁有此交易物件的連接物件

命名空間:  System.Data.Entity.Core.EntityClient
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Protected Overrides ReadOnly Property DbConnection As DbConnection 
    Get
'用途
Dim value As DbConnection 

value = Me.DbConnection
protected override DbConnection DbConnection { get; }
protected:
virtual property DbConnection^ DbConnection {
    DbConnection^ get () override;
}
abstract DbConnection : DbConnection 
override DbConnection : DbConnection
override function get DbConnection () : DbConnection

屬性值

類型:System.Data.Common.DbConnection

請參閱

參考

EntityTransaction 類別

System.Data.Entity.Core.EntityClient 命名空間