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
|
Query : Dim seqRcd = (From ajt In ContextFactory.Repo.abc Where ajt.id= 12489 AndAlso ajt.Seq = 1 Select ajt).FirstOrDefault() Purpose: I have to check whether item with that id and seq exit or not. both id and seq are col names. Tries I did: 1. using And rather than AndAlso 2. using Any() 3. Count() Error : 2011-12-13 20:10:43,595 [44] ERROR user1- Cannot apply a function to the expressions (id= 12489 AND Seq = 1) and False at Mindscape.LightSpeed.Linq.Operators.BinaryFunctionOperatorBase.Apply(QueryExpression lhs, QueryExpression rhs, DataProvider provider)
at Mindscape.LightSpeed.Linq.Sqo.CriteriaSqo.ExtractCriteria(IList |
|
|
We've been unable to reproduce this issue. It is possible that it relates to an already-fixed bug where Visual Basic was automatically inserting coalesce operations. Can you try to reproduce the problem with the current nightly build? If it still occurs, could you provide us with the definition of the entity which exhibits the problem (you can copy the class definition out of the generated code, we don't need to see the .lsmodel diagram itself)? Thanks! |
|