When I update my edmx from database ( I added primary keys on many-to-many relation table)
I get duplicated properties like
InstantceType and InstanctType1, for each refresh from db I get a new property
any idea as to what is causing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is probably that the EF model has become confused (corrupted) after the keys were added. A many-to-many table is a bit special, since it will not show up as an entity in an EF diagram if it only contains keys.
To fix this problem, the simplest solution would be to delete the model and then regenerate it.