You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies for opening another issue so soon. Is there a property at the change tracker level that will indicate if any changes have been made on any of the objects in the object graph? I'm hoping to use this for a "needs to be saved" indication for backing a UI.
I saw this issue, which I think would accomplish what I need, but it involves configuring a separate event on each tracked object, which is a little cumbersome.
I didn't see anything in the documentation, but maybe I'm missing something. Right now I'm basically doing something like this
I am effectively looking for something similar to the HasChanges method from Entity Framework's change tracker. This gives a single place to check for any changes across all objects being tracked.
This can be nice if, for example, you have a UI backed by several different tracked objects, and you want to indicate if there are any changes that need to be saved.
I can do it manually using something like the above where I iterate over all tracked objects, call GetChangeTracker() on each one, and check ChangedProperties for any changes. But that requires keeping track of exactly which objects are being tracked and providing a common method to access them.
Apologies for opening another issue so soon. Is there a property at the change tracker level that will indicate if any changes have been made on any of the objects in the object graph? I'm hoping to use this for a "needs to be saved" indication for backing a UI.
I saw this issue, which I think would accomplish what I need, but it involves configuring a separate event on each tracked object, which is a little cumbersome.
I didn't see anything in the documentation, but maybe I'm missing something. Right now I'm basically doing something like this
which could be slow if there are a lot of entities or a lot of changes.
The text was updated successfully, but these errors were encountered: