Update an .edmx File when Database Changes Occures
Open .EDMX file, right click on it and choose an update model from database. but it is not always works in case of modifications in table(s). For that we need to follow some other way like first we need to
1. Delete the table from the model,
2. Switch to XML form EDMX,
3. Delete the related XML entity elements,
4. Switch back to EDMX from XML.
5. Finally right click on it and choose an update model from database.
Happy Coding!!!
1. Delete the table from the model,
2. Switch to XML form EDMX,
3. Delete the related XML entity elements,
4. Switch back to EDMX from XML.
5. Finally right click on it and choose an update model from database.
Happy Coding!!!
it was helpful ,tnx
ReplyDelete