dbcontext - Reset modified state of entity in OnObjectMaterialized -


when save entity database encrypt values in onsavingchanges event handler. when entity loaded database i'm using onobjectmaterialized decrypt values.

this works great except if call save on 1 of entities after been materialized, object context thinks entity has been modified , saves database.

so how reset modified state such thinks decrypted values values in database?


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -