Solved

Linq Query Doesn't Make IQueryable

Posted on 2011-02-19
3
516 Views
Last Modified: 2013-11-11
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)
0
Comment
Question by:Silas2
  • 2
3 Comments
 
LVL 5

Expert Comment

by:sameer_goyal
ID: 34933506
No you can't.
0
 

Author Comment

by:Silas2
ID: 34933571
Can you get a QueryObject from a query with joins in?
0
 
LVL 5

Accepted Solution

by:
sameer_goyal earned 500 total points
ID: 34933685
yes you can.. in fact, a queryobject, if has multiple data sources, created a JOIN between the data sources.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question