DbContextConfiguration.AutoDetectChangesEnabled-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 einen Wert ab oder legt ihn fest und zeigt an, ob die DetectChanges()-Methode automatisch von DbContext-Methoden und verknüpften Klassen aufgerufen wird. Der Standardwert ist true.
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Property AutoDetectChangesEnabled As Boolean
Get
Set
'Usage
Dim instance As DbContextConfiguration
Dim value As Boolean
value = instance.AutoDetectChangesEnabled
instance.AutoDetectChangesEnabled = value
public bool AutoDetectChangesEnabled { get; set; }
public:
property bool AutoDetectChangesEnabled {
bool get ();
void set (bool value);
}
member AutoDetectChangesEnabled : bool with get, set
function get AutoDetectChangesEnabled () : boolean
function set AutoDetectChangesEnabled (value : boolean)
Eigenschaftswert
Typ: System.Boolean
true, wenn automatisch aufgerufen werden sollte, andernfalls false.