EF Core no .Include() method on DBset

后端 未结 3 869
醉梦人生
醉梦人生 2021-02-12 12:30

I\'m currently completely unable to call .Include() and intellisense (in vscode) doesn\'t seem to think it exists.

Now after a long time searching the web I\'ve found th

3条回答
  •  孤独总比滥情好
    2021-02-12 12:57

    If you end up here, a user of EF 6 or below and happen to miss that OP actually mentioned this like I did, you want to add

    using System.Data.Entity;
    

    to your class.

提交回复
热议问题