This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have a paged query (via a Skip and a Take) that is generating incorrect SQL. First I am doing a query.Count() to get the total results which is generating correct SQL: exec sp_executesql N'SELECT
Then I am adding a Skip and a Take to the query to get the current pages results: exec sp_executesql N'SELECT
The Place sub-select in this query now has the row number and is filtering on it. |
|
|
We are not having any luck repro'ing this unfortunately, is it possible to send through a small repro for this? If not, is it possible to capture the expression tree for the query and also send through the appropriate parts of the model which would be involved in the query?
Thanks! Jeremy |
|
|
Model + more details sent to you. |
|
|
Thanks! Thats enough detail to repro the issue - will get back to you on a fix.
Jeremy |
|
|
Ive added in a fix which should cover this - it will be in tonights nightly build.
Jeremy |
|
|
Brilliant. I'll try it out in the next nightly build and let you know how I get on. |
|
|
Fixed. Good work! |
|