DbCommand.DbTransaction 属性

定义

当在派生类中重写时,获取或设置执行 DbCommand 对象时所在的 DbTransactionWhen overridden in a derived class, gets or sets the DbTransaction within which this DbCommand object executes.

protected:
 abstract property System::Data::Common::DbTransaction ^ DbTransaction { System::Data::Common::DbTransaction ^ get(); void set(System::Data::Common::DbTransaction ^ value); };
protected abstract System.Data.Common.DbTransaction DbTransaction { get; set; }
protected abstract System.Data.Common.DbTransaction? DbTransaction { get; set; }
member this.DbTransaction : System.Data.Common.DbTransaction with get, set
Protected MustOverride Property DbTransaction As DbTransaction

属性值

DbTransaction

.NET 数据提供程序的命令对象在其中执行的事务。The transaction within which a command object of a .NET data provider executes. 默认值为空引用(在 Visual Basic 中为 Nothing)。The default value is a null reference (Nothing in Visual Basic).

适用于

另请参阅