Local Transaction
The Devprime platform offers a built-in feature to enable local database transactions and can be used in conjunction with SqlServer, MongoDB, MySQL, PostgreSQL, Oracle.
By enabling this functionality, operations in the database are isolated in an automatic transactional context and only in case of success is the transaction confirmed.
The transactional context can be initialized at the business scope within the domain by adding the “ExecuteTransaction” in the Devprime pipeline or directly at the database store scope with the “ExecuteTransaction” or “ExecuteTransactionResult” command as per the desired scenario in the operation.
-
Including the transactional context in the “Aggregate Root” domain
-
Including the transactional context in the “Database” repository