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 have worked through the blog post "http://www.mindscapehq.com/blog/index.php/2011/01/20/getting-started-with-lightspeed-4-and-ria-services/" when I get to the final step "Compile it up and we will now have a DomainDataSource available to us in the Silverlight client application." nothing is appearing in DataSources. Can you provide any further guidance for getting Lightspeed up and running with RIA Services? Thanks, |
|
|
Hi David, That should be all you need to do. One thing to check is to make sure you are using an up to date nightly, particularly if you have Visual Studio 2010 SP1 (which also means RIA Services SP1) installed.
Jeremy |
|
|
I have got the latest nightly to be sure but still having problems. I'm following the blog post but don't seem to have a ModelDataContext. What might I be missing? |
|
|
NOt sure if this is related but I had as a similar issue deut to the fact that I did not completely uninstall the previous version before installing the latest nightly bed. Maybe this would help you? |
|
|
Thanks for the idea but still getting an error: Error 1 Parameter 'parent' of domain method 'InsertParents' must be an entity type exposed by the DomainService. The entity type can be exposed either directly in a query operation, or indirectly through an association. SilverlightApplication5 Any ideas? |
|
|
Hi David, Try adding a [Query] attribute to your IQueryable method (see this post: http://www.mindscapehq.com/forums/Post.aspx?ThreadID=3962&PostID=14598), this seems to be cropping up as being required to get RIA Services to perform the code generation correctly.
Jeremy |
|
|
Excellent, thank you this has solved the problem and all seems to be working now (can see the DataSource in the Silverlight client). Thanks again. |
|
|
When accessing my entity on the client side I cannot see the child entities. Using the entity framework I would use "include" on the object context. What is the equivilant using lightspeed for ria services?
|
|
|
Hi David, You will need to have your collection eager loaded, either by specifying this at the model level or by using a named aggregate and then specifying a WithAggregate call with your LINQ query which returns the IQueryable for your query method. You also need to ensure that the entity type of the child collection is known to RIA Services so that it generating the associated child collection code - it sounds like this is already the case for you. An example from our Film Festival sample to enable the Sessions child collection to be serialized across would be to make the following changes:
Jeremy |
|