ObjectContextOptions.EnsureTransactionsForFunctionsAndCommands-Eigenschaft
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Ruft den Wert ab oder legt den Wert fest, der festlegt, ob SQL-Funktionen und Befehle immer in einer Transaktion ausgeführt werden sollen.
Namespace: System.Data.Entity.Core.Objects
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Property EnsureTransactionsForFunctionsAndCommands As Boolean
Get
Set
'Usage
Dim instance As ObjectContextOptions
Dim value As Boolean
value = instance.EnsureTransactionsForFunctionsAndCommands
instance.EnsureTransactionsForFunctionsAndCommands = value
public bool EnsureTransactionsForFunctionsAndCommands { get; set; }
public:
property bool EnsureTransactionsForFunctionsAndCommands {
bool get ();
void set (bool value);
}
member EnsureTransactionsForFunctionsAndCommands : bool with get, set
function get EnsureTransactionsForFunctionsAndCommands () : boolean
function set EnsureTransactionsForFunctionsAndCommands (value : boolean)
Eigenschaftswert
Typ: System.Boolean
Das Standardtransaktionsverhalten.
Hinweise
Dieses Kennzeichen bestimmt, ob eine neue Transaktion gestartet wird, wenn Methoden wie ExecuteFunction(String, ObjectParameter[]) und ExecuteStoreCommand(String, Object[]) außerhalb einer Transaktion ausgeführt werden. Dies ändert jedoch nicht das Verhalten von SaveChanges().