Database entity model was generated with warnings or errors (asp.net)

Got some errors when trying to generate a DB entity model for a ASP.net MVC website. The error message was “The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application”.

This turned to be caused by some tables that was lacking a primary key. Once a primary key was set on these tables the model could be generated successfully.

Leave a Reply

Your email address will not be published. Required fields are marked *