Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

Error- Unable to update the EntitySet

Article:
Viewed:  792 
Posted On:  14/03/2015 20:48:58 
Unable to update the EntitySet- because it has a DefiningQuery and no eleme. 

 

Error: Unable to update the EntitySet - because it has a DefiningQuery and no <UpdateFunction> element exist

When executing an insert query got this error:

1.png

 

Image 1.

This type of exception comes usually when entity set is mapped from database view, custom database query or if database table doesn't have primary key.

Check your Data Base table.

2.png

Image 2.

As you can see there is no primary key define for above table so make changes in the table:

3.png

Image 3.

Now enjoy your query.  J

  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us