You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ndphuong EF Core requires all mapped entity types to have a primary key defined. This is needed so that different entity instances can be uniquely identified for tracking.
Can you provide some details of what you are trying to do so we might be able to give some advice on how to approach it.
The EFCore throw exception:
The entity type XXX requires a primary key to be defined
But our table don't have any primary key column
How to avoid this ?
The text was updated successfully, but these errors were encountered: