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)
Who is Participating?

Improve company productivity with a Business Account.Sign Up

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.
No you can't.
Silas2Author Commented:
Can you get a QueryObject from a query with joins in?
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.