Check if value changed before marking as modified
See original GitHub issueData proxy is always marked as modified after its set()
method is called. It does not check if the value was really changed before marking it as modified.
I think it can be more performant if the equivalence check is performed since it may save a commit to database.
Correct me if I misunderstand anything. 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:11
Top Results From Across the Web
how do i check if property actually change before an update
State = EntityState.Modified; _context.saveChanges();. Will update all the relevant field of the entity, thus marked as dirty. On the code ...
Read more >how to check if field values changed before save - ServiceNow
Hey there, I am trying to update my table specific Update & Save UI actions to check if any values have changed before...
Read more >how to check whether an entity is unchanged or modified in ...
I used the below code to get state (changed or unchanged). system.data. ... Iam getting s value as Detached insted of unchanged or...
Read more >Checking for Modified or Changed Fields in Script
If you just want to do a check to see if any value on the entire form changed (a dirty form), you can...
Read more >Find which properties changed on modified event - AutoCAD ...
So I decided to do a quick try with .NET properties, basically using reflection mechanism to store the data and compare back. Below...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m testing on my own branch, making it as a per-collection flag and a per-field flag also. A demo snippet will be provided when I think I’m ready 😉
@momocow Yes, my proposal was a global flag. But I have no objection to a per-collection flag. Can’t investigate this right now.