Missing Entity Framework Include(lambda) extension

后端 未结 1 1641
隐瞒了意图╮
隐瞒了意图╮ 2020-12-29 01:10

The EF OjbectSet.Include(a => a.parent) extension is unavailable. I know I could add code to mimic it, but according to EntityFramework 4 upgraded to 5, lamb

相关标签:
1条回答
  • 2020-12-29 01:37

    According to MSDN, the method is defined in the EntityFramework assembly. (in EntityFramework.dll)

    You'll need to add a reference to the EntityFramework.dll DLL as well.

    Afterwards, you'll need to make sure you're referencing the namespace:

    using System.Data.Entity;

    0 讨论(0)
提交回复
热议问题