title: Transactions in the Repository Pattern using ServiceStack.ORMLite
body: <p>I'm implementing Repository Pattern using ServiceStack.ORMLite like this:</p>
  
  <pre><code>public class MyRepository : IMyRepository
  {
      private IDbConnectionFactory DbConnectionFactory = null;
  
      public MyRepository(IDbConnectionFactory dbConnectionFactory)
      {
          DbConnectionFactory = dbConnectionFactory;
      }
  
      public void MyMethod()
      {
          using (var connection = DbConnectionFactory.OpenDbConnection())
          using (var cmd = connection.CreateCommand())
          {
              //Do something here
          }
      }
  }
  </code></pre>
  
  <p>But I don't know how to handle DbTransaction when I need to warp some DB operation in a DbTransaction.It looks like <a href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx"><code>TransactionScope</code></a> is a solution but I don't know whether is way too heavy for this.</p>