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
I am trying to implement audit fields in my system by using the DBContext ChangeTracker, getting the list of "Added" and "Modified" entities, and setting the audit fields appropriately. In my Put request function I am calling DbContext.applychanges(object). My assumption is that this will automatically set the entity states of the object and its children. However, it does not seem like it is doing that as the object's state remains "Unchanged" even when I change one of the values of the object or its children. Do I have a fundamental flaw in my understanding of this? Any help would be appreciated.
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to implement audit fields in my system by using the DBContext ChangeTracker, getting the list of "Added" and "Modified" entities, and setting the audit fields appropriately. In my Put request function I am calling DbContext.applychanges(object). My assumption is that this will automatically set the entity states of the object and its children. However, it does not seem like it is doing that as the object's state remains "Unchanged" even when I change one of the values of the object or its children. Do I have a fundamental flaw in my understanding of this? Any help would be appreciated.
Thank you
The text was updated successfully, but these errors were encountered: