Mennisujay wrote:
hi Otis,
I had 10 records and i am deleting them. Is it good to use Unit of Work, which deletes in one go. Or is it good to use transaction object.
Doesn't matter, either way will work.
I had a feeling that Unit of work consumes more resources and degrades performance.
This is just my assumption.
A UoW stores information internally, so it consumes a bit memory for that, not a lot, as it's all object references. Internally it uses a transaction to perform the commit.