Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DbContextConfiguration Class

Entity Framework 5.0

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

System.Object
  System.Data.Entity.Infrastructure.DbContextConfiguration

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

The DbContextConfiguration type exposes the following members.

  NameDescription
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.
Top
  NameDescription
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().)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.