title: Best approach to handle database transactions and business logic
body: <p>I wonder if it is right to handle the transactions of the database as follows:</p>
  
  <pre><code>    **locate database service**
           **open connection**
                **begin transaction**
                    get objects from relational database
                    call business logic
                **commit transaction**
           **close connection**
      **release**
  </code></pre>
  
  <p>The code in asterisks its going to be injected via IoC**</p>
  
  <p>While thus the business logic is not affected by data access code, asked whether the implementation is correct and what possible consequences it brings.</p>
  
  <p>Thank you!</p>