Skip to content

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

@IvanFarkas

Description

@IvanFarkas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions