插入值引用后导航属性为空

问题描述 投票:0回答:0
  1. i have class payment:
  2. i have class reservation
  3. i have create function
  4. i create payment and insert reservations
  5. i have get reservations function
  6. 当我调用 GetReservations() 时,出现错误:why navugation cant load here
  7. 请帮助我,我尝试使用 include() 调用 eager load 然后加载导航,但我认为 include 会降低性能`
c# winforms entity-framework entity-framework-6
© www.soinside.com 2019 - 2024. All rights reserved.