DbContextConfiguration Class
Entity Framework 5.0
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)
The DbContextConfiguration type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AutoDetectChangesEnabled | Gets or sets whether the automatic detection of changes in the configuration is enabled. |
![]() | LazyLoadingEnabled | Gets or sets a value indicating whether lazy loading of relationships exposed as navigation properties is enabled. Lazy loading is enabled by default. |
![]() | ProxyCreationEnabled | Gets 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. |
![]() | ValidateOnSaveEnabled | Gets or sets a value indicating whether tracked entities should be validated automatically when SaveChanges is invoked. The default value is true. |
| Name | Description | |
|---|---|---|
![]() | Equals | Returns whether the specified configuration is equal to the current configuration. (Overrides Object.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Returns the hash function for the specified configuration. (Overrides Object.GetHashCode.) |
![]() | GetType | Gets the type for the current configuration. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | Returns a string representation of the configuration. (Overrides Object.ToString.) |
Show:
