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

Persistence by Reachabillity and tracking events

1 Answer 32 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.
Pål
Top achievements
Rank 1
Pål asked on 12 Jan 2010, 09:02 PM
Hi.

OA supports peristence by reachabillity, such that if I call context.Add(obj1), and another object obj2 is referencenced from obj1, then obj2 is also added to the context.

My problem is that when using tracking, only one call is made to Tracking.Added event for obj1 and not for obj2.

To get around the problem, I have implemented IInstanceCallbacks interface and manually raising a custom event, but this is possible only after transaction is commited.

Is it possible to get a list of referenced new objects after the call to context.Add(obj1) somehow?

I assume that some logic is made when transaction is commited to retrieve these newly added objects, and so is it possible to retrieve these before the transaction is commited?

Thanks,

Pål

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 15 Jan 2010, 04:52 PM
Hi Pål,

The only way to rise the Adding event for your referenced object (obj2) is to add it to the object scope as well. Unfortunately there is no other workaround at this moment. We are sorry for any inconvenience this might be causing.

Regards,
Petar
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Pål
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or