[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"/2025/09/29-entity-framework-(ef)-include()-lambda-extension-method-namespace":3},{"id":4,"title":5,"body":6,"date":54,"description":51,"extension":55,"meta":56,"navigation":57,"path":58,"robots":59,"seo":60,"stem":61,"__hash__":62},"posts/2025/09/29 Entity-Framework-(EF)-Include()-lambda-extension-method-namespace.md","29 Entity Framework (EF) Include() Lambda Extension Method Namespace",{"type":7,"value":8,"toc":50},"minimark",[9,18,25,28,31,33],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"entity-framework-ef-include-lambda-extension-method-namespace","Entity Framework (EF) Include() Lambda Extension Method Namespace",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 8/29/2018.",[26,27],"br",{},[22,29,30],{},"As of this writing, seems like Visual Studio still unable to provide suggestion on what namespace to import for extension methods.",[26,32],{},[22,34,35,36,44,45,49],{},"I was looking into doing eager loading in EF and I am aware that I can use ",[37,38,43],"code",{"className":39},[40,41,42],"bg-gray-200","p-2","rounded","Include()"," method with lambda function. By default, it is not available and I can't remember which namespace it is located under. Of course, Visual Studio was not much help. After searching online, I found out that it is an extension method under ",[37,46,48],{"className":47},[40,41,42],"System.Data.Entity"," namespace. I gotta remember from now on.",{"title":51,"searchDepth":52,"depth":52,"links":53},"",2,[],"2025-09-29T00:00:00.000Z","md",{},true,"/2025/09/29-entity-framework-(ef)-include()-lambda-extension-method-namespace",null,{"title":5,"description":51},"2025/09/29 Entity-Framework-(EF)-Include()-lambda-extension-method-namespace","VOscof95nAEXoYaCgUPzrOP79dj3FzfzHWZzawQtRqo",1785167453027]