Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 EF4.0
I am just getting started with Entity Framework and getting the following error in my code and would like to know how to proceed:
 
Error   29  Error 3027: No mapping specified for the following EntitySet/AssociationSet - COUNTRies, PRHs.  C:\svn_workspace\FoxTool\Source\Fox.DataAccessService\FoxEFModel.edmx   457 9   Fox.DataAccessService
 
I do not right now have any relationships set up (at least I see none).
Posted 17-May-12 7:17am
Edited 17-May-12 7:18am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Sometimes if you make any changes to the EDMx file or if you change a database column and do an update the mapping xml representation for the EDMx file gets corrupte and you receive this error. just click control + A delete all objects in the EDMx file and add the database again, or you can open the EDmx file in the XML view and try to find the unmapped assosiacition and delete it
  Permalink  
Comments
Clifford Nelson at 30-May-12 13:10pm
   
You hit it on the nose. Vote, thanks
nbethi at 25-Jun-13 5:03am
   
When you Update From Database Model option, sometimes it does loose the mappings for some entities which are added manually.
 
Here is the workaround to overcome this issue you can open the EDMX in XML mode (right click on edmx and choose to open with XML) then you can manually add the new field that you wanted.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,280
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 30 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100