Cascading Updates in EntityCollections

Posts   
 
    
Harry
User
Posts: 73
Joined: 26-Jun-2007
# Posted on: 14-Jan-2008 17:47:59   

Hello,

I need to be able to cascade a change from an entity onto entity collections contained within that entity.

For example if I set the Cancel date of an Order I would need to loop through all the OrderItems within the Order and set the Cancel date on those as well.

My plan is to override the OnSetValueComplete event handler of the OrderEntity and determine the field and the course of action.

My question is regarding fetches. Do I need to be concerned that this code will be called while and item is being fetched? If so how would I prevent the custom method call when it is?

Thanks in advance!

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 14-Jan-2008 20:23:14   

My question is regarding fetches. Do I need to be concerned that this code will be called while and item is being fetched? If so how would I prevent the custom method call when it is?

No worries here.

But I'll advice you to read the following post regarding some issues with OnSetValueComplete

http://llblgen.com/TinyForum/Messages.aspx?ThreadID=11625

Harry
User
Posts: 73
Joined: 26-Jun-2007
# Posted on: 14-Jan-2008 21:01:06   

I am familiar with that post and have re-read it.

Thanks for the help!!