Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Changetracker - Difference between entity.OriginalValues entity.CurrentValues and entity.GetDatabaseValues

$
0
0
I found a strange Changetracker behavior.
If i load an entity from db and check the 3 values (Original,Current,Database) all seems to be ok.

currentvalue = database value (original)
originalvalue = database value (original)
databasevalue = database value (original)


But if i add a UpdateMethod in a Property Setter which updates an other property and the UpdateMethod result differ from the database value then

currentvalue = changed UpdateMethod value
originalvalue = changed UpdateMethod value
databasevalue = database value (original)

Is there something i can do that the originalvalue is the databasevalue and not the value from the dependancy update?

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>