I am using EntityFramework 6 and I used Update Model
from Database
after inserting table in the database, I got above error.Please state how to overcome this problem.
Open the edmx file on notepad, find the unmapping association and remove it. It should work.
Not too satisfying, but I solved it by removing and re-adding the model:
The warning was gone afterwards.
I got the same error and found that the foreign key in the table I had added was not of the same type as in the referenced table.
Here how I fix this:
I am not sure why this happens but on my part, it consistently triggers this error when I update my database, and I didn't update my edmx file.
Try removing entity (table) from EDMX then run update to add that table again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With