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

.NET Core/EF 3.0 - Owned Entity - Error on insert #52

Open
IvanFarkas opened this issue Mar 12, 2019 · 0 comments
Open

.NET Core/EF 3.0 - Owned Entity - Error on insert #52

IvanFarkas opened this issue Mar 12, 2019 · 0 comments

Comments

@IvanFarkas
Copy link
Contributor

IvanFarkas commented Mar 12, 2019

I am unable to insert when there is one or more owned entities (no nested entities).
It's working with DBContext.
Using:

  • .NET Core SDK 3.0.100-preview3-010431
  • Microsoft.EntityFrameworkCore 3.0.0-preview3.19153.1

Exception:
The entity of type 'Entity' is sharing the table 'Entity' with entities of type 'Entity.OwnedEntity#OwnedEntity', but there is no entity of this type with the same key value '{Id: -2147482647}' that has been marked as 'Added'.

It's a known issue.
See: EF Core 2 Owned Entities and Temporary Work-Arounds
Would be nice to have a fix or at least a roadmap to fix this in the trackable entities.

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