views:

21

answers:

0

So I query my object from the db (via entity framework) and I decide to set some values. Let's say the values I set are the same as they were originally. What's happening is that the ObjectStateManager is detecting that my object is 'Modifed'. I was hoping that the property change event would do an equals comparison and only set the value (and flag the object as modified) if it was different. Is there a way I can set up my context so it does this for all of my entities?