Sdílet prostřednictvím


ObjectContextOptions.EnsureTransactionsForFunctionsAndCommands Vlastnost

Definice

Získá nebo nastaví hodnotu, která určuje, zda sql funkce a příkazy by měly být vždy spuštěny v transakci.

public bool EnsureTransactionsForFunctionsAndCommands { get; set; }
member this.EnsureTransactionsForFunctionsAndCommands : bool with get, set
Public Property EnsureTransactionsForFunctionsAndCommands As Boolean

Hodnota vlastnosti

Výchozí transakční chování.

Poznámky

Tento příznak určuje, zda bude nová transakce spuštěna, když jsou metody, jako ExecuteFunction(String, ObjectParameter[]) a ExecuteStoreCommand(String, Object[]) jsou spuštěny mimo transakci. Všimněte si, že se tím nezmění chování objektu SaveChanges().

Platí pro