Delete entity in collection

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 19-Feb-2006 03:13:08   

Hi,

I would like to be able to return an entity collection from a function and the collection contains entities which need to be added to the db and deleted.

I'm not sure how to do the deletes. I would like to be able to create the entity to be deleted and set its primary key and then set a field which would be called something like 'MarkForDeletion' to true.

Is it possible to do something like this or must the deletes be processed seperately?

Cheers, I.

JimFoye avatar
JimFoye
User
Posts: 656
Joined: 22-Jun-2004
# Posted on: 19-Feb-2006 03:46:21   

Look at the unit of work object. That might be what you need.