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 How can I translate this LINQ expression to native LightSpeed Query object? var result = _unitOfWork.ApplicationDiscounts .Select(ad => new {ad.Id, Count = ad.ProductDtlDiscounts.Count()}).ToList(); Thanks, Serge |
|
|
You need to use a subexpression (http://www.mindscapehq.com/documentation/lightspeed/Advanced-Querying-Techniques/Subexpressions). Example:
|
|
|
Thanks a lot! |
|