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.

  1. Including the transactional context in the “Aggregate Root” domain
    Devprime Capabilities Transactions in Aggregate

  2. Including the transactional context in the “Database” repository
    Devprime Capabilities Transactions in Aggregate

Last modified August 20, 2024 (2f9802da)