0

I have an app that is designed using EF 6 database first. When I right click in my EDMX file and click 'Update model From database' the following error occurs:

enter image description here enter image description here

How do I solve this? Re creating the db is not an option.

I tried adding a new table to the DB model using EF 6 database first - Received an error

3
  • Which part of "An entry with the same key already exists" do you not understand? You have a key field/column and you are trying to save a new entity with a duplicate key to the one that already exists in the database. Commented Nov 9, 2022 at 17:41
  • Thats the issue - An entry with the same key does not exist @Neil Commented Nov 9, 2022 at 17:45
  • @Neil OP seems to get that error when updating the model, not the database entries Commented Nov 9, 2022 at 17:46

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.