EntityCommand.Transaction Property

 

Gets or sets the transaction within which the SqlCommand executes.

Namespace:   System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

public virtual EntityTransaction Transaction { get; set; }

Property Value

Type: System.Data.Entity.Core.EntityClient.EntityTransaction

The transaction within which the SqlCommand executes.