Share via


DbContextConfiguration.AutoDetectChangesEnabled Property

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Gets or sets a value indicating whether the DetectChanges() method is called automatically by methods of DbContext and related classes. The default value is 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)

Property Value

Type: System.Boolean
true if should be called automatically; otherwise, false.

See Also

Reference

DbContextConfiguration Class

System.Data.Entity.Infrastructure Namespace