EntityCommand.DbConnection 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
用於執行命令的連接物件
命名空間: System.Data.Entity.Core.EntityClient
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Protected Overrides Property DbConnection As DbConnection
Get
Set
'用途
Dim value As DbConnection
value = Me.DbConnection
Me.DbConnection = value
protected override DbConnection DbConnection { get; set; }
protected:
virtual property DbConnection^ DbConnection {
DbConnection^ get () override;
void set (DbConnection^ value) override;
}
abstract DbConnection : DbConnection with get, set
override DbConnection : DbConnection with get, set
override function get DbConnection () : DbConnection
override function set DbConnection (value : DbConnection)
屬性值
類型:System.Data.Common.DbConnection