Basically, I'm not interested in adding the cascading delete to sql server so I want to use the DeleteMulti..() methods on an entity for all it's related data.
Now, ideally I want to do this in a transaction, but before I do that I just wanted to check something first.
It seems to me that in order to use a transaction (in self servicing mode) you need to add the entity to the transaction?
Then you can perform operations on the entity using that transaction.
Now, if I want to call something like
customer.getMultiOrders.deleteMulti()
customer.delete()
Does this mean that the CustomerEntity and it's OrderEntities are fetched from the database? It seems to me to be a pointless use of bandwidth and processing? Am I missing something?
Also, I assume that in this instance I only have to add the CustomerEntity to a transaction and everything relating to that entity will be executed within that transaction?