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

admin2025-04-26  1

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745604710a309512.html

最新回复(0)