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, I'm searching a little guidance here. We are going to deploy an application that uses WCF services to communicate between the client and server (they will use named pipes, as they will sit in the same computer). I've been reading the documentation and samples on this topic, but I haven't really found much. I have seen that when generating the DTOs for the entities, they lack all types of relations, just ids that you would need to use to query for those relations. What would be ideal to us is if the DTOs could be used on the client side nearly as the original entities (so they keep their references, collections,...). Apart from that, autogeneration of DTOs, of services,... Would be welcomed :) (I think the tools right now only auto generate the DTOs). So, any other extra information or guidance on how to approach this scenario with LS? Regards, Vicente |
|
|
What sort of timeframe are you looking at? I ask because LightSpeed 4 will provide a lot of what you want (maybe all of it), so it depends on whether you need something now or can afford to wait. (http://www.mindscapehq.com/blog/index.php/2010/12/09/distributed-enhancements-coming-in-lightspeed-4/ for more info) |
|
|
The DTO templates in LightSpeed 3 are intentionally pretty simple as you generally want to keep your contracts pretty tight when shipping data across the wire. The templates are of course able to be modified to suit your needs so you could have a look at customising them to generate out associations and collections if that sounds like the right approach for your specific situation. Alternatively you might be quite interested in having a look at the newer distributed functionality we have in LightSpeed 4 (you can currently grab the beta from your account), in particular the new DistributedUnitOfWork would likely suit what you are aiming for (for the client side to actually work with the entities). In a nutshell this allows you to work with LightSpeed entities client side as you would normally do at the server but have all of the data fetched from a WCF endpoint. You can grab a quick example for using this from this thread.
Jeremy |
|
|
I found the posts about LS 4 after posting my question, my bad for not checking the blog first :S Reading about the features, it sounds as everything we would need really. Unfortunately, our timeframe is more or less "right now", we are forced to switch for causes that are outside our control (sadly), so until we make the change we are more or less stuck. So that moves me to two questions: - How usable is the beta right now? (I haven't tried it) - Is there any temptative public release date for the final version? |
|
|
Jeremey, I'm going to check the sample, thanks for the link as that would be the ideal solution for us probably (need to measure performance, but we don't expect it to be too bad working on the same machine). |
|
|
I forgot another important question: could we distribute an application that used the beta version of LS 4? |
|
|
Yes, you can - however you would need to upgrade to a release version or nightly once the beta period has finished.
Jeremy |
|
|
Makes perfect sense. Any tip about the other two questions? (release date and stability/maturity of the new release?). A "we can't say right now" works too ;) Regards, Vicente |
|
|
The bits themselves are pretty well bedded down and we are really just working through feedback to push through changes prior to a final release. The main hold up is around a documentation and sample refresh we are going through which is part of the 4.0 release. We have had a lot of feedback over the past couple of releases that the documentation is a bit inconsistant given the amount of change between 1.x -> 2.x and then with the additions in 3.x, likewise the samples are inconsistent in terms of patterns and there are few samples which highlight some of the newer capabilities or tie-in's with Silverlight or MVC 2/3. At this stage we are hoping that should be done within a month, but it also has taken a lot longer than expected but you can be assured we will be posting news once we have a firm date in mind :)
Jeremy |
|
|
Well, sounds great here, seems things are far more advanced that we expected :) Thanks a lot for sharing it Jeremy. Vicente |
|