Using Include in Entity Framework 4 with lambda expressions

后端 未结 3 1651
时光取名叫无心
时光取名叫无心 2020-11-30 22:26

I\'ve seen many articles about how to overcome this matter, all related to CTP4, Or adding my own extension methods.

Is there an \"official\" EF4 included way to use

3条回答
  •  野性不改
    2020-11-30 22:37

    Although this is implied in the question, for anyone else who has the same problem where they can't use lambdas with .Include, make sure you have this:

    using System.Data.Entity;
    

提交回复
热议问题