Association end is not mapped in ADO entity framework

后端 未结 7 1770
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-14 12:00

I am just starting out with ADO.net Entity Framework I have mapped two tables together and receive the following error:

Error   1   Error 11010: Association End          


        
7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-14 13:01

    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 . 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.

提交回复
热议问题