Click here to Skip to main content
16,007,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to add a new table to the edmx file in visual studio, but everytime i try antything, i get the error that the key already exists. Even if i try it with a complete random names, like table name Giraffe, column legOne, column legTwo, i get the same error.

How can i resolve this?

What I have tried:

- adding with different non related names,
- use refresh instead of add in the wizard,
- check for equal names in the xml file,
Posted
Updated 30-Mar-20 1:34am

I'd suggest to add a table on a database level (via management studio). Then try to update edmx file. See: How to: Update an .edmx File when the Database Changes (Entity Data Model Tools) | Microsoft Docs[^]
 
Share this answer
 
yes, it is based on a database level that i try to add it. table created in management studio which gives me that error
 
Share this answer
 
Comments
Richard Deeming 1-Apr-20 15:04pm    
If you want to reply to a solution, click the "Have a Question or Comment?" button under that solution and post a comment.

Do not post your comment as a new "solution".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900