HEXAQ : A friendly question - answer site for IT professionals

MVC Error: EntityType 'Customer' has no key defined. Define the key for this EntityType.


0

Hello,

I have created a project in Visual Studio 2010 with MVC 3, SQL2008 (NOT Local DB).

The project built was successful. At the runtime I can see this error

EntityType 'Customer' has no key defined. Define the key for this EntityType.

I have used ADO.NET Entity Framework and have generated the diagram from database. No code is written for Model by me.

Still this is not working.

Â
asked
 


≡ Total 0 Answer

Enter your reply here
Answer Preview: