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

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 responses to “Database entity model was generated with warnings or errors (asp.net)”

  1. Liaqat Hussain Avatar
    Liaqat Hussain

    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.

  2. Liaqat Hussain Avatar
    Liaqat Hussain

    sp is not updating in mvc module

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.