In the ADO entity framework, the association end is not mapped. entity-framework visual-studio-2008


I'm just beginning to use Entity Framework. I've combined two tables and got the following error:

Error   1   Error 11010: Association End 'OperatorAccess' is not mapped.    E:\Visual Studio\projects\Brandi II\Brandi II\Hospitals.edmx    390 11  Brandi II

I'm unsure of what I'm doing incorrectly.

I think I can clarify the situation a little further (learning as I go):

The column for the operatoraccess table (from above) is blank when I see the mapping information and association, and the drop-down menu only contains fields from the connected table.

alt text

4/23/2019 3:28:15 PM

Accepted Answer

The Entity Framework designer needs to be improved. I often have the same issue (and Craig, you do too):

This occurs when a many-to-one relationship is put up incorrectly. They could have fixed the designer to make this procedure easier, but we have to put up with this shite instead.

To fix:

  • Go to the Map information view by clicking the association.
  • Go to association and choose connects to "tablename". Select the table(s) that make up the relationship's many side (i.e., the table(s) that make up the association's *-side in the designer).
  • Select the table columns that correspond to each entity-side property under Column. When one of those entries is empty, you see this error..
5/5/2010 3:14:43 PM

Popular Answer

This is how I resolved a similar issue that I faced.

Make sure the tables you're associating with have a Entry Point configured in your designer. Additionally, make sure that that Entity Key's StoreGeneratedPattern is changed to Identity.

Related Questions


Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow