You can get this error when you have generated your Entity Model from a database.
This error means that due to any issue (update/delete etc) the Entity mappings are not same as the Database.
1. Double Click the edmx file to open the Entity Model in design view.
2. Press Ctrl A to select all objects within Entity Model.
3. Now press Delete to delete all objects.
4. Again generate your Entity model from Database using "Update Model from Database" option given in context menu (Right Click).
5. All done.
Hope this will help.
Happy Coding :)
This error means that due to any issue (update/delete etc) the Entity mappings are not same as the Database.
Solution
There can be seen many solutions to this problem over internet but the best solution as far as I know is1. Double Click the edmx file to open the Entity Model in design view.
2. Press Ctrl A to select all objects within Entity Model.
3. Now press Delete to delete all objects.
4. Again generate your Entity model from Database using "Update Model from Database" option given in context menu (Right Click).
5. All done.
Hope this will help.
Happy Coding :)
realy good soltion to generate all complex type again
ReplyDeletethank you so much, very usefull post
ReplyDeleteThanks Dude.... it worked.
ReplyDeleteAwesome... thanks.
ReplyDeleteExcellent Solution. Saved me more hours troubleshooting this stuff. Thanks.
ReplyDeleteGreat and simple way!!! thank you!!!
ReplyDelete