The following linq call in plain linq to sql results in 1 SQL query to the database
Table1.Select(t => new {Table2.First().Property1})
But I can't seem to get Dynamic Linq to to the same, the below produces 2 separate queries.
Table1.Select("new(@0.Property1)", Table2.First())
This does not work either
Table1.Select("@0", Table2.First().Property1)
or this
Table1.Select("new(@0 as MyField)", Table2.First().Property1)
What am I missing ?