Asp.net MVC 出现IQueryable 未包含“Include”的定义

IQueryable<T>”未包含“Include”的定义:

主要原因是“Include” 是EntityFramework.dll的扩展方法,所以不要引用“System.Data.Entity.dll”,直接引用“EntityFramework.dll”即可。