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

OpenAccess WCF RIA Services

3 Answers 141 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.
David
Top achievements
Rank 1
David asked on 09 May 2011, 09:25 AM
I am using OA with WCF RIA Services / Silverlight and need some direction.

I have a object PLAN which has a one-to-many association with another object NOTE. I have created a meta file for PLAN so that the association is accessible i.e. PLAN.NOTES and it works fine, the NOTES is represented as a ILIST<NOTE>. However, if I remove a NOTE from the PLAN and then submit changes for the context OA does not remove the relevant note row from the database.

Should it ? or am I missing something fundamental???

Thanks

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 11 May 2011, 04:40 PM
Hi David,

 This is supported by OpenAccess itself however currently it is not supported by our domain model. The option you are looking for is called delete orphans and will soon be available with the domain model. Until then I am afraid that you will have to delete the note instance from the context.
I am sorry for the inconvenience this might be causing you.

Best wishes,
Petar
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
David
Top achievements
Rank 1
answered on 12 May 2011, 09:12 PM
Can I use OpenAccess itself with RIA Services, by that I mean can a create a Telerik OpenAccess DomainService on top of a reverse mapped model or do I have to use a Telerik Open Access Domain Model when working with RIA Services.

I have tried doing this but when I go to the DataContext drop-down there is nothing to select.

If this is possible can you point me to any examples?
0
PetarP
Telerik team
answered on 16 May 2011, 04:14 PM
Hi David,

 Our RIA services implementation is targeted at working with our domain model. This is why you are unable to see anything else but domain model contexts and rlinq files in the wizards dropdown.
Will it be a huge overhead for you to account for deleting a child from the context itself given the fact that the delete orphans option is missing?

Best wishes,
Petar
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
PetarP
Telerik team
David
Top achievements
Rank 1
Share this question
or