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, when I do this query:
var sozenotDB = from d in skbb.SodisceInsolvs where allData.Any( p=> p.davcnaStevilkaDolznika == d.TaxFileNo) select d; I get this exception when I try to evaluate results: Unable to cast object of type 'Mindscape.LightSpeed.Querying.LiteralExpression' to type 'Mindscape.LightSpeed.Querying.IAttributePathExpression'.
allData is an IEnumerable array. This is with the oracle provider. |
|
|
Thanks for reporting this. We've reproduced the error and are investigating. As a workaround, since you're using an equality comparison, you can use the Contains operator: var taxFileNos = allData.Select(p => p.davcnaStevilkaDolznika).ToArray(); |
|