Linq Query Doesn't Make IQueryable

Can you cast a System.Linq.Enumerable.JoinIterator to a QueryObject? This reason being that I’m trying to get to ToTraceString(), but my var query when executed is not an IQueryable but a JoinIterator??? (I just want to see the SQL)
Silas2Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
sameer_goyalConnect With a Mentor Commented:
yes you can.. in fact, a queryobject, if has multiple data sources, created a JOIN between the data sources.
0
 
sameer_goyalCommented:
No you can't.
0
 
Silas2Author Commented:
Can you get a QueryObject from a query with joins in?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.