Why is AutoDetectChangesEnabled not set by default?

I was wondering why the property AutoDetectChangesEnabledin DbContext is set to false by default.

I want to embed content in my context, and as you may know, automatic detection in false leads to better results.

I mean, if I know when to detect changes in my context, is there some reason why I shouldn't install AutoDetectChangesEnabledin false?

+5
source share
1 answer

I think that most likely they wanted a more common and very useful behavior to work out of the box.

var mycontext = new DemoContext();
var myEntity = myContent.Thinhymybobs.find(akey);
myEntity.PropX = newvalue;
mycontext.saveChnages();

, , delta . .

"" . , EVEN - , .

. . http://msdn.microsoft.com/en-us/data/jj592676.aspx

+4

All Articles