Thanks Jim, I assumed that the Sender would be the Collection, as this seems to be the standard in .NET, rather than the Entity. I finally found a description in the Reference Manual documentation.
If this is the case, then this introduces another problem. If the same event procedure is handling multiple collections, it is not possible to know which collection has generated the event (hence why Sender is usually the event generator).
So, once again, should we not have a BeforeRemoveEventArgs parameter added?
Walaa, I did already read the UOW documentation, but felt it overkill for the purpose of handling a simple collection in a grid.
However, are you suggesting that instead of my existing approach, I associate a UOW with each Collection, call UOW.AddForDelete in the Collection.BeforeRemove event, then instead of calling Collection.SaveMulti(), I call UOW.AddCollectionForSave then UOW.Commit(...)?
I believe this process of simple grid data management is a very common task, so it's almost certainly worth including some examples in the 'Using the Generated Code' section of the help manual.
Cheers,
Jason