Fix: The entity type 'X' requires a primary key to be defined in EF Core 11
EF Core can't find a key for your type. Either name a property Id or {Type}Id, add [Key], call HasKey, or - if it is a view or raw SQL result - call HasNoKey.
187 posts · Page 1 of 19