This is a migrated thread and some comments may be shown as answers.

[Solved] RIA child Update

3 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hector
Top achievements
Rank 1
Hector asked on 18 Aug 2010, 06:14 AM
I am using RIA service to retrieve my data. That works greate, but I am trying to create a new parent and child data. I am having trouble on finding the child property on my parent object so I can submit all the objects at the same time. Is this possible ?

Hector

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 23 Aug 2010, 02:58 PM
Hello Hector,

The child property is currently not generated out of the box. In order to have the collection generated you will have to add some attributes to the already generated classes. For example if you have a collection of order details in your order class you will have to add the following above your property that is representing the collection:

[Include]  
        [System.ComponentModel.DataAnnotations.Association("Order_OrderDetails_FK","OrderID","OrderID")]
        public virtual IList<OrderDetail> OrderDetails
        {
            get
            {
                return this.orderDetails;
            }
        }
Save and rebuild your project. This will trigger our RIA provider implementation to pick up this association and generate the proper client code.
We are planning to extend our RIA support and include a wizard that will help you add all those attributes automatically however until then they need to be added manually.


Regards,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
richard
Top achievements
Rank 1
answered on 26 Feb 2011, 08:27 PM

 Is this wizard still on the roadmap? maybe 2011 Q1? How about support for generating the Metadata classes also? 
0
PetarP
Telerik team
answered on 02 Mar 2011, 06:38 PM
Hello richard,

 Yes, the wizard is still in our plans, however no significant changes will be introduced with the Q1 release. One of the features we plan to introduce in the RIA wizard is the metadata class. Unfortunately at this point I am not able to provide you with exact time frame when those changes will be implemented.

Regards,
Petar
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Hector
Top achievements
Rank 1
Answers by
PetarP
Telerik team
richard
Top achievements
Rank 1
Share this question
or