2

I'm trying to add a database using the Entity Data Model Wizard and keep on getting an error "An Item with the same key has already been added."

EF Designer from Database > New Connection > Error

VS Error

This is a new connection that I'm working with. Where can I view what keys are entered?

1
  • you have Table which contains the same Column twice. Commented May 9, 2016 at 20:15

2 Answers 2

2

I had the same problem a while ago and found out that I have model with the same property twice. Just rename that property and it should work fine.

Sign up to request clarification or add additional context in comments.

1 Comment

I've seen this problem, too!
2

Make sure that what you key in for "Save connection settings in Web.Config" is unique. You can browse the web.config file to see what connections you've already saved.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.