This question is locked. New answers and comments are not allowed.
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
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