You can use the Dump(this object o, int depth)
overload to control the depth of the query.
For example:
myQuery.Dump(1);
will only select things from the properties of the objects returned, but not of the properties of those properties.
If you run the following example you can see it in action:
void Main()
{
var a = new A
{
B = new B
{
Foo = "Deep",
},
};
a.Dump(); //Shows properties of all properties.
a.Dump(1); //Does not show properties of B.
}
class A
{
public B B { get; set; }
}
class B
{
public String Foo { get; set; }
}