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
|
Hi. The following query is resulting in an InvalidCastException and I am not sure why.
Stack trace
I can rewrite the query as
but this results in a NullReferenceException StackTrace
Any thoughts as to what could be wrong? Cheers. |
|
|
Apparently if I materialise the first table, the join table is materialised with it and I get a result I can live with
(although materialising both tables is obviously not the best solution!) |
|
|
Hi Andy, The original issue is hitting a limitation with our support with the use of functions as grouping keys - there has been a backlog item to work on this so I will progress this and get this added in to the nightly build for you soon which will sort this out. The second issue (the rewritten query which had the NullReferenceException) behaves a bit different for me in a repro case here but ultimately its falling over because we dont support the use of traversals in grouping keys (in this case you are ShoppingCart.CreatedOn with the function for the .Date member wrapped around it). Ill have a look if I can sort this out at the same time as covering off the original issue as well. I will post an update once I have some progress here which should be within the next day or two and all going well I should an update in the nightly builds for you soon.
|
|
|
Hi Andy, We had added these two changes into the nightly builds now, let us know how you get on.
|
|