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

后端 未结 2 1557
悲哀的现实
悲哀的现实 2021-01-26 15:38

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:06

    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)?

提交回复
热议问题