Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does apply changes automatically set the Entity States of an Entity Object and its children? #231

Open
adrianpzamora opened this issue Sep 24, 2019 · 0 comments

Comments

@adrianpzamora
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant