Get an EntityEntry<TEntity> for Shared Entity Types #25354
Labels
area-change-tracking
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-enhancement
Milestone
Get an EntityEntry for Shared Entity Types
Right now, it is impossible to access an EntityEntry (via
Context.Entry(obj)
) for a SharedEntity and this prevents us from changing states of entries.(Not really necessary to understand the issue, but I need to access the EntityEntry of the shared entity because I want to set the state of the shared entity to Added while keeping related entities to Unchanged)
Reproducible example
Stack Traces
Include provider and version information
EF Core version: 5.0.8
Database provider: Microsoft.EntityFrameworkCore.Sqlite 5.0.8 & Npgsql.EntityFrameworkCore.PostgreSQL 5.0.7
Target framework: NET 5.0
Operating system: Linux
IDE: Rider
The text was updated successfully, but these errors were encountered: