G
Guest
Hi group, I have an app with a table gateway-style data access layer that
does atomic crud operations on individual tables. but sometimes i want to do
two inserts/updates/etc. on multiple tables as a transaction. I could write
custom data access methods to handle these special cases, but I'd rather
"compose" these operations by having a layer above wrap the existing CRud
methods into a transaction. this would be like a business logic layer. Has
anyone organized their code like this? It seems like I would have to start
the trx in the bus logic layer and pass the trx down to each of the DAL
methods, but that seems ugly. Any thoughts or suggestions on the "best" way
to do this?
Thanks!
does atomic crud operations on individual tables. but sometimes i want to do
two inserts/updates/etc. on multiple tables as a transaction. I could write
custom data access methods to handle these special cases, but I'd rather
"compose" these operations by having a layer above wrap the existing CRud
methods into a transaction. this would be like a business logic layer. Has
anyone organized their code like this? It seems like I would have to start
the trx in the bus logic layer and pass the trx down to each of the DAL
methods, but that seems ugly. Any thoughts or suggestions on the "best" way
to do this?
Thanks!