Export (0) Print
Expand All

TransactionalBehavior Enumeration

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Controls the transaction creation behavior while executing a database command or query.

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

public enum TransactionalBehavior

Member nameDescription
DoNotEnsureTransactionIf an existing transaction is present then use it, otherwise execute the command or query without a transaction.

EnsureTransactionIf no transaction is present then a new transaction will be used for the operation.

Show:
© 2015 Microsoft