Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to update the EntitySet 'ItemRankList' because it has a DefiningQuery and no <UpdateFunction> element exists

Tags:

c#

linq

Any ideas why does the entity framework in LINQ gives following strange error:

Unable to update the EntitySet 'ItemRankList' because it has a DefiningQuery and no element exists in the element to support the current operation.

like image 532
sandeep talabathula Avatar asked Mar 24 '10 13:03

sandeep talabathula


1 Answers

Guess i should also ask the context... how are you using linq?

Do you have a primary key defined on the table ?

If not add the key and update the EF model.

like image 163
Nix Avatar answered Nov 09 '22 07:11

Nix