最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin6PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far