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 see you have a version 5.5 available now, but I can't seem to find any press announcements or blog posts about it. Where can I find the info on your newest release of Lightspeed? |
|
|
Not sure if you have already seen the blog post on this, if not its at http://www.mindscapehq.com/blog/index.php/2015/08/03/announcing-lightspeed-5-5/ The main addition is Visual Studio 2015 support. Beyond that its a roll-up of all of the enhancements and fixes since 5.0.
|
|
|
Was the ability to use a static method in the select when making a projection removed in 5.5 intentionally? In 5.5 I get a NotSupportedException when doing something like:
The method GetContactNameForDisplay is a public static method in the same class (ContactService) as the above code. This worked in earlier versions of Lightspeed. |
|
|
No, which version of LightSpeed did this work in? Is there a function translation defined for GetContactNameForDisplay? If not it wont work because we cannot translate that method into a server side call. If you are intending that to be a client side projection you can force enumeration (e.g. by calling .ToList) prior to the select call, e.g.
|
|
|
Looks like it worked in 5.0.2714 which is the version that is deployed live in the site at the moment. In this particular code the class (eg: ContactService), the method calling the lightspeed code (eg: GetContactList) and method GetContactNameForDisplay are all public static (don't ask me why). It doesn't work in 5.0.3277 or 5.5. Yeah I can change this code to project to an anonymous type eg: select new { bc.Id, u.GivenName, u.FamilyName, bt.ShortDisplayName, bc.DisplayLabel, bc.BusinessDivision } to avoid lazy loading n+1 or maybe define an aggregate for this. Problem will be finding where static method calls have been used in lightspeed selects in the entire codebase, because it used to work and the exception is only throw when you execute the code. |
|
|
Next question :) Any chance of a Lightspeed 5.5 nightly package in the account/subscription nuget feed? |
|
|
Yes, please add LightSpeed 5.5 nightly build to a nuget feed :) |
|
|
Yes we are planning to make NuGet packages available as per 5.0 in the near future.
|
|