Hopefully, this question has an easy answer and it is simply escaping me at the moment.
If I have a query like...
from p in context.Parents select p; ...and I also have the query...
from p in context.Parent.Include("Children") select p; ...what is the best way to conditionally include the call to the Include method? By this, I would like to use the same query to handle both conditions (with, say, a boolean flag like includeChildren). It seems like I have done this in the past using the method syntax but the LINQ syntax is a bit more friendly with complex queries that include joins (in my opinion).