DbBatch.Transaction Property

Definition

Gets or sets the DbTransaction within which this DbBatch object executes.

C#
public System.Data.Common.DbTransaction? Transaction { get; set; }

Property Value

The transaction within which a batch of a .NET data provider executes. The default value is a null reference (Nothing in Visual Basic).

Applies to

Product Versions
.NET 6, 7, 8, 9, 10