Entity framework configuration

Configuring entity framework

The DbContext class has a property: Configuration which allows you to set some configuration. The configuration property is of type DbContextConfiguration and has the following properties:

AutoDetectChangesEnabled
Gets or sets a value indicating whether the System.Data.Entity.Infrastructure.DbChangeTracker.DetectChanges() method is called automatically by methods of System.Data.Entity.DbContext and related classes.
LazyLoadingEnabled
Gets or sets a value indicating whether lazy loading of relationships exposed as navigation properties is enabled.
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.
UseDatabaseNullSemantics
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)))
ValidateOnSaveEnabled
Gets or sets a value indicating whether tracked entities should be validated automatically when System.Data.Entity.DbContext.SaveChanges() is invoked.

Default are all properties enabled, except UseDatabaseNullSemantics that's default disabled.

{{opmerking.Naam}}:

{{opmerking.OpmerkingText}}

            

Saving your comment....

Naam is verplicht!
Email is verplicht!
Opmerking is verplicht!