Export (0) Print
Expand All

DbContextConfiguration Properties

Entity Framework 5.0

The DbContextConfiguration type exposes the following members.

  Name Description
Public property AutoDetectChangesEnabled Gets or sets whether the automatic detection of changes in the configuration is enabled.
Public property LazyLoadingEnabled Gets or sets a value indicating whether lazy loading of relationships exposed as navigation properties is enabled. Lazy loading is enabled by default.
Public property 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.
Public property ValidateOnSaveEnabled Gets or sets a value indicating whether tracked entities should be validated automatically when SaveChanges() is invoked. The default value is true.
Top
Show:
© 2014 Microsoft