Share via


Proprietà DbContextConfiguration.AutoDetectChangesEnabled

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Ottiene o imposta un valore che indica se il metodo DetectChanges() viene chiamato automaticamente dai metodi di DbContext e classi correlate. Il valore predefinito è true.

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Property AutoDetectChangesEnabled As Boolean 
    Get 
    Set
'Utilizzo
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)

Valore proprietà

Tipo: System.Boolean
true se deve essere chiamato automaticamente; in caso contrario, false.

Vedere anche

Riferimento

DbContextConfiguration Classe

Spazio dei nomi System.Data.Entity.Infrastructure