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

Posted by Poster under Error and Solution on 5/16/2010 | Views : 2679 | Status : [Member] | Replies : 1

When you get following error while inserting or updating the database using ADO.NET Entity model, ensure that your database table has Primary key.

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


If primary key will not be there in the database table, you will get above error.

Thanks




Responses

Posted by: Vuyiswamb on: 5/17/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
You have the Same problem they explained here

http://social.msdn.microsoft.com/Forums/en/adodotnetentityframework/thread/94db7213-a245-4282-86c6-2399eac33229



Thank you for posting at Dotnetfunda
[Administrator]

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response