Okay, so you’ve executed a query that loads all your recipes, and you know that you want to look at recipe ingredients. (And you know that you don’t want to make several bazillion trips to the server.) There are two possible situations: You might want to look at the ingredients of all the recipes, or you might want to only look at the ingredients of a selected recipe. The Entity Framework supports both scenarios. To include all the related entities in your query, you use the
Include() method allows you to load related entities when the query is executed:
You can include multiple levels of relationships ...