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

Write history when adding a new item to the database #27

Open
Franklin89 opened this issue Sep 7, 2018 · 2 comments
Open

Write history when adding a new item to the database #27

Franklin89 opened this issue Sep 7, 2018 · 2 comments

Comments

@Franklin89
Copy link

Franklin89 commented Sep 7, 2018

Why is the EntityState.Added not supported? The case for the EntityState.Added is here.

But the filter on Line 33 filters for modified and deleted

Or is there a reason why this is missing?

@rigofunc
Copy link
Member

rigofunc commented Sep 7, 2018

Because there is not an easy way to get the Added entity’s primary key without one more database roundtrip. The primary key need to associate the history is whose

@rigofunc
Copy link
Member

rigofunc commented Sep 7, 2018

See #26, it’s same issue and reason

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

Successfully merging a pull request may close this issue.

2 participants