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


I am just starting out with Entity Framework I have mapped two tables together and receive 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

Not sure what it is I am doing wrong.

I believe I can add some more clarity to the issue (learning as I go):

When I look at the Mapping details and look at the association, the column for operatoraccess table (from above) is blank and the drop down only includes field from the linked table.

alt text

4/23/2019 3:28:15 PM

Accepted Answer

The Entity Framework designer is terrible - I've had the same problem many times (and your problem too, Craig):

This happens when you have a many-to-one association which is improperly setup. They could very easily fix the designer to make this process simple; but instead, we have to put up with this crap.

To fix:

  • Click on the association, and go to the mapping details view.
  • Under association, click on Maps to <tablename>. Choose the table(s) which make up the many side of the relationship (ie. the table(s) which make up the *-side of the association in the designer)
  • Under Column, choose the table-columns which map to each entity-side Property. You get this error when one of those entries are blank.
5/5/2010 3:14:43 PM

Popular Answer

I had the exact same problem and this is what I did to fix it.

Make sure you have an Entity Key set in your designer on the tables your making an association with. Also check that StoreGeneratedPattern is set to Identity for that Entity Key.

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