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 lads, I may be having a blond moment but this query
Produces this sql which looks nice apart from the missing max/InvoicingDueDate
Lightspeed version/nightly is LightSpeed50Professional-20140224 Note: BillingItem table's key is composite key made of AssetId and BillId Any ideas? Will try make a standalone repro tomorrow. |
|
|
Any aggregate function will be handled client side, our LINQ provider translates a grouping query into several queries, one for the underlying group by query to fetch the grouping keys and then one per key to fetch the underlying entities in that set. Subsequent operations are handled client side as they need to be performed over sets of entities. Unfortunately combining grouping and joins is not supported (see: http://www.mindscapehq.com/documentation/lightspeed/Appendices/LINQ-Support-Limitations under the Joining, Grouping and Combining section) so you may need to look at some alternative to achieve the above query (e.g. use of a stored proc or view if thats possible).
|
|
|
Fair enough. |
|