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 am experiencing a very wierd issue when trying to right a pretty simple query in Lightspeed 3 using linq. Below is the query and the error. Any help is much appreciated. Dim est = ContextFactory.Repo.EstimateDetails.Where(Function(F) F.EstimateId = estimateId And F.EstimateFileId = 12264).FirstOrDefault() Object reference not set to an instance of an object. at Mindscape.LightSpeed.Linq.Operators.BitwiseAndOperator.Apply(QueryExpression lhs, QueryExpression rhs, DataProvider provider)
|
|
|
Got some new information. EstimateFileId is a nullable bigint in the model. If I change the schema to make it not nullable then the exception goes away. |
|
|
We'll look into this, but it looks like the problem may be where we're trying to figure out if the And is bitwise or boolean. Try changing it to the unambiguous AndAlso, and see if that helps. |
|
|
Hi Ivan, i am still facing the same problem , could you please help to rid this issue? |
|
|
Are you seeing this with a current build of LightSpeed? If so can you please send us through a small repro project which we can use to look into this issue for you.
|
|
|
No ,we are using older version |
|
|
Sorry we will need you to upgrade to a more recent version to verify if this is still an issue as we are only able to provide updates into the nightly builds for 4.0 and 5.0.
|
|