EntityFramework i have ConversionReward table, i wanna create test table like this…
- User
EntityFramework i have ConversionReward table, i wanna create test table like this ConversionReward2 : ConversionReward, but got error: A key cannot be configured on 'ConversionReward2' because it is a derived type How to fix it
- Assistant
In Entity Framework, when you're using inheritance and creating a derived type from a base entity, there are certain constraints on how keys and relationships are configured. The error message you're encountering is indicating that you're trying to set a key on a derived type (), which is not allowed in Entity Framework's Table-per-Hierarchy (TPH) inheritance strategy.