asp.net mvc - An item with with the same key has already been added - Stack Overflow

I am following a tutorial of model-first approach in ASP.NET MVC in which I am using ADO.NET Entity Mod

I am following a tutorial of model-first approach in ASP.NET MVC in which I am using ADO.NET Entity Model Data, empty EF designer model and when generating the database after defining it's properties getting an error

An Item with the same key has already been added

Here's my model:

My Model

And this is a error I get:

Couldn't generate DDL, Error

I tried rebuilding the solution and making sure that the model doesn't have duplicate keys.

Update - Just tried the same in a different folder and it worked.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745604708a4635605.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信