Hi
While using entity framework,Is it necessary that,if i want to populate a view with a class(class containg the data i want to display on screen),that class is associated with a table in database.When im creating a view and adding the calss "EmployeeDetails" in controller,I'm constatly getting an error that says: Entity Type "EmployeeDetails" has no key defined.Define Key for this entiy type.Please help!Thank you.

spandana reddy71 reputationPosted Apr 15, 2019, 8:49 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 27, 2019, 10:12 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 24, 2019, 2:47 AM EST