asp.net mvc page is not showing properties from associated objects

后端 未结 2 1535
一生所求
一生所求 2021-01-26 15:12

I have the following simple structure: Applicant Possition ApplicantPosition and ApplicantPositionHistory

The 3rd class has one reference with Applicant and one with Pos

2条回答
  •  隐瞒了意图╮
    2021-01-26 16:01

    Can you show the code where you get the List of items from the database?

    Did you try to debug that code? Were everything you want to show on the page loaded from the database (because EF does not load associated entities by default)?

提交回复
热议问题