title: ORA-01453: SET TRANSACTION must be first statement of transaction with LLBLGENPRO
body: <p>I have searched every where in google, LLBLGenPro forums, Oracle documentation, I have successfully executed underlying insert statement in oracle and it works. I don't know how to further debug this.</p>
  
  <p>Here is my code that I use to update the LLBLGENPRO entity</p>
  
  <pre><code>    using (var adapter = new DataAccessAdapter(MyConnectionString))
      {
          adapter.SaveEntity(MyCustomEntityObject);
      }
  </code></pre>
  
  <p>The Error Message:</p>
  
  <pre><code>Test method MyTest123 threw exception: 
  System.Data.OracleClient.OracleException: ORA-01453: SET TRANSACTION must be first statement of transaction
  </code></pre>
  
  <p>Stack Trace: </p>
  
  <pre><code>    at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc)
     at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, ref OciRowidDescriptor rowidDescriptor, ref ArrayList resultParameterOrdinals)
     at System.Data.OracleClient.OracleCommand.ExecuteNonQueryInternal(Boolean needRowid, ref OciRowidDescriptor rowidDescriptor)
     at System.Data.OracleClient.OracleCommand.ExecuteNonQuery()
     at System.Data.OracleClient.OracleTransaction..ctor(OracleConnection connection, IsolationLevel isolationLevel)
     at System.Data.OracleClient.OracleInternalConnection.BeginOracleTransaction(IsolationLevel il)
     at System.Data.OracleClient.OracleInternalConnection.BeginTransaction(IsolationLevel il)
     at System.Data.OracleClient.OracleConnection.BeginDbTransaction(IsolationLevel isolationLevel)
     at System.Data.Common.DbConnection.BeginTransaction(IsolationLevel isolationLevel)
     at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.CreateNewPhysicalTransaction()
     at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.StartTransaction(IsolationLevel isolationLevelToUse, String name)
     at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.SaveEntity(IEntity2 entityToSave, Boolean refetchAfterSave, IPredicateExpression updateRestriction, Boolean recurse)
     at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.SaveEntity(IEntity2 entityToSave)
     at MyTest123() in MyTest123: line 289
  </code></pre>