Error while creating Ado,net entity model in mvc? [Resolved]

Posted by Prabu_Spark under ASP.NET MVC on 5/3/2014 | Points: 10 | Views : 9588 | Status : [Member] | Replies : 1
Hi sir,

I am getting the below error while creating Ado.net entity model in mvc application.. Kindly give me the solution for this problem.



"The model was generated with warnings or errors.
Loading metadata from the database took 00:00:02.7835367.
Generating the model took 00:00:02.6672431.
Added the connection string to the Web.Config file.
Successfully registered the build provider in the Web.Config file.
Writing the .edmx file took 00:00:00.0007301.
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.
Loading metadata from the database took 00:00:03.2232643.
Generating the model took 00:00:02.5630682.
Successfully registered the build provider in the Web.Config file."

With regards,
J.Prabu.
[Email:prbspark@gmail.com]



Responses

Posted by: kgovindarao523-21772 on: 5/5/2014 [Member] [MVP] Bronze | Points: 50

Up
0
Down

Resolved
Hi,
One of the reasons was, the table which you are importing to edmx must contain a primary key.
cross check with this.

Thank you,
Govind

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response