Friday, 24 August 2012

Unable to update the EntitySet:

"Unable to update the EntitySet 'Myentity' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation"

Hie... while i'm doing saving my data to DB with Entity Frame work in MVC it gone to this error actually the problem is while giving table entity to that it done success but it seems error while i'm saving to DB... i gone through all and done entity again and again finaly i fount the issueis while i'm creating it seems i didnt given the primary key to the table... after the problem solved finally.... after updating my entity.....

Actually Visual studio created a key  itself  on .edmx  model off course it created key for correct column but there no key in DB so it seems... error.... after updating... issue fixed..
Hope that  you 've discovered this little fix.. before lossing time...like i did.. here i'm inserting image to find out easily...


No comments:

Post a Comment