Validation error in modelHi friends.
I have created a mvc application, in which I took three class files in a model, one class file contains teams list and other class file contains the players list.
The third class file I took as a DbContext class using the entity framework.
Now I have a Teamcontroller and PlayersController.
My requiremet is like below.
1.I should display the teams list first(Teams view as a action link).
2.When we click on the action link of a particular team it should take to the players view, where all players related to that team has to be displayed.
Am facing the following error message while working on it.
One or more validation errors were detected during model generation:
\tSystem.Data.Entity.Edm.EdmEntityType: : EntityType 'Players' has no key defined. Define the key for this EntityType.
\tSystem.Data.Entity.Edm.EdmEntitySet: EntityType: EntitySet 'players' is based on type 'Players' that has no keys defined.