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)

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

public class DbContextConfiguration

NameDescription
System_CAPS_pubpropertyAutoDetectChangesEnabled

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.

System_CAPS_pubpropertyEnsureTransactionsForFunctionsAndCommands

Gets or sets the value that determines whether SQL functions and commands should be always executed in a transaction.

System_CAPS_pubpropertyLazyLoadingEnabled

Gets or sets a value indicating whether lazy loading of relationships exposed as navigation properties is enabled. Lazy loading is enabled by default.

System_CAPS_pubpropertyProxyCreationEnabled

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.

System_CAPS_pubpropertyUseDatabaseNullSemantics

Gets or sets a value indicating whether database null semantics are exhibited when comparing two operands, both of which are potentially nullable. The default value is false. For example (operand1 == operand2) will be translated as: (operand1 = operand2) if UseDatabaseNullSemantics is true, respectively (((operand1 = operand2) AND (NOT (operand1 IS NULL OR operand2 IS NULL))) OR ((operand1 IS NULL) AND (operand2 IS NULL))) if UseDatabaseNullSemantics is false.

System_CAPS_pubpropertyValidateOnSaveEnabled

Gets or sets a value indicating whether tracked entities should be validated automatically when SaveChanges is invoked. The default value is true.

NameDescription
System_CAPS_pubmethodEquals(Object)

Specifies whether the configuration is the same as the specified object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets the hash code associate with the configuration.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string representation of DbContextConfiguration.(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.

Return to top
Show: