DbContextConfiguration Class

Returned by the Configuration method of DbContext to provide access to configuration options for the context.


Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public class DbContextConfiguration

The DbContextConfiguration type exposes the following members.

Public propertyAutoDetectChangesEnabledGets or sets whether the automatic detection of changes in the configuration is enabled.
Public propertyLazyLoadingEnabledGets or sets a value indicating whether lazy loading of relationships exposed as navigation properties is enabled. Lazy loading is enabled by default.
Public propertyProxyCreationEnabledGets or sets a value indicating whether or not the framework will create instances of dynamically generated proxy classes whenever it creates an instance of an entity type. Note that even if proxy creation is enabled with this flag, proxy instances will only be created for entity types that meet the requirements for being proxied. Proxy creation is enabled by default.
Public propertyValidateOnSaveEnabledGets or sets a value indicating whether tracked entities should be validated automatically when SaveChanges() is invoked. The default value is true.

Public methodEqualsReturns whether the specified configuration is equal to the current configuration. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash function for the specified configuration. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the type for the current configuration.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string representation of the configuration. (Overrides Object.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.