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.

2 thoughts on “Database entity model was generated with warnings or errors (asp.net)

  1. The model was generated with warnings or errors.Rainmaker.edmxPlease see the Error List for more details. These issues must be fixed before running your application.
    Loading metadata from the database took 00:00:01.2604118.
    Generating the model took 00:00:02.5598424.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.