the entity type requires a primary key to be defined .net core migration code example
Example: The entity type 'Palavra' requires a primary key to be defined
public int Id { get; protected set; }
public int Id { get; protected set; }