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.