ObjectContextOptions.EnsureTransactionsForFunctionsAndCommands Property

 

Gets or sets the value that determines whether SQL functions and commands should be always executed in a transaction.

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

public bool EnsureTransactionsForFunctionsAndCommands {
	[CompilerGeneratedAttribute]
	get;
	[CompilerGeneratedAttribute]
	set;
}

Property Value

Type: System.Boolean

The default transactional behavior.

This flag determines whether a new transaction will be started when methods such as ExecuteFunction and ExecuteStoreCommand are executed outside of a transaction. Note that this does not change the behavior of SaveChanges.