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, This is just FYI, because I think I've found a workaround that suits my needs. I was experimenting again with "Ninja" domain properties, as per http://www.mindscapehq.com/blog/index.php/2010/09/14/ninja-domain-properties-in-lightspeed/ I wanted to write one called IsCurrent, which had an expression that looked like this:
This gives a null reference exception in Mindscape.LightSpeed.Linq.Sqo.CriteriaSqo.ConvertToQueryExpressionLinqQueryPlanExpression plan, Expression expression), under LS 4. A bit of experimentation indicated that its the DateTime.Now that was causing the problem. E.g. the error went away if, as a test, I used an expression that just compared the FirstDay and LastDay properties, without reference to DateTime.Now. John |
|
|
By the way, see also this post http://www.mindscapehq.com/forums/writepost/456441 re trying to use Ninja properties to identify child objects. |
|