¡@

Home 

c# Programming Glossary: detectchanges

Why is inserting entities in EF 4.1 so slow compared to ObjectContext?

http://stackoverflow.com/questions/5943394/why-is-inserting-entities-in-ef-4-1-so-slow-compared-to-objectcontext

detection to improve performance context.Configuration.AutoDetectChangesEnabled false This change detection is enabled by default in.. is that many more functions of the DbContext API will call DetectChanges internally than functions of the ObjectContext API when automatic.. Here you can find a list of those functions which call DetectChanges by default. They are The Add Attach Find Local or Remove members..

Implementing Audit Log / Change History with MVC & Entity Framework

http://stackoverflow.com/questions/6867459/implementing-audit-log-change-history-with-mvc-entity-framework

public override int SaveChanges SaveOptions options DetectChanges var modifiedEntities ObjectStateManager.GetObjectStateEntries..

Entity Framework 4.1. Most efficient way to get multiple entities by primary key?

http://stackoverflow.com/questions/8107439/entity-framework-4-1-most-efficient-way-to-get-multiple-entities-by-primary-key

the test after several minutes because Find calls DetectChanges internally. Disabling auto change detection context.Configuration.AutoDetectChangesEnabled.. Disabling auto change detection context.Configuration.AutoDetectChangesEnabled false leads to roughly the same performance as SingleOrDefault..