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

You can't fire me because I quit! #265

Merged
merged 1 commit into from
May 29, 2014
Merged

You can't fire me because I quit! #265

merged 1 commit into from
May 29, 2014

Commits on May 28, 2014

  1. You can't fire me because I quit! (Change from Added to Deleted resul…

    …ts in detached entity)
    
    See issue #351. When an entity is in the Added state it means that it doesn't exist in the database and should be inserted during SaveChanges. If the state is then changed to Deleted this would mean delete an entity that doesn't exist in the database, which will fail. In the EF6 stack we instead detach the entity in this case so that it is just never inserted. This change implements the same behavior in EF7.
    ajcvickers committed May 28, 2014
    Configuration menu
    Copy the full SHA
    510f234 View commit details
    Browse the repository at this point in the history