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
|
Given the following query going to MSSQL, I get the error "The method 'Select' is not supported". The query works in LINQPad using LINQ to SQL. I have to break the query out and iterate over the Locations and then execute the projected query to get this to work. from l in UnitOfWorkScope.Current.Locations
|
|
|
Hi Dan, Yes currently projections which contain a seperate query are not supported, so your use of the Selected property is causing the error when trying to translate the method calls (Where/Select) inside that statement. As you have pointed out, currently you will need to break this out into seperate queries as a workaround for now. We have a backlog item for adding support in for this in the future, so I will post an update once we have this available in a release :)
Jeremy |
|
|
Jeremy, Is this one still on the backlog? John |
|
|
Yes, this is still on the backlog. I am doing some work on improved translation in the LINQ provider for 5.0 so this may be resolved as part of that, but will keep you posted :)
|
|