In this quick post you are going learn the way to overcome the titled error.
HOW TO FIX
1st Way
Simple solution to this error is to create database tables with primary keys.
2nd Way
Another way is to open the .edmx file in XML Editor and replace the <EntityContainer….> root by following code (also delete the SQL queries) , remember to modify this code using your own Name collections.
<EntityContainer Name="MoviesAppStoreContainer">
<EntitySet Name="Movies" EntityType="MoviesApp.Store.Movies" store:Type="Tables" Schema="dbo" />
</EntityContainer>

These steps will fix your issue. Thanks.

Rajasekhar PeramsaniPosted May 30, 2018, 4:07 PM
Thank you very much it's working now
Hiren JoshiPosted Nov 2, 2017, 10:26 AM
Thanks brother it's help full for me
Ibrahim ErsoyPosted Feb 4, 2012, 3:22 PM
Thanks for the trick.Ever considered shortening the blog title :)