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
Post a Comment