コード例 #1
0
ファイル: RecordMember.cs プロジェクト: fmazzant/Record
 /// <summary>
 /// Executes the statment with transaction.
 /// </summary>
 /// <param name="pConnection">The p connection.</param>
 /// <param name="handler">The handler.</param>
 /// <param name="completed">The completed.</param>
 /// <param name="error">The error.</param>
 public void ExecuteStatmentWithTransaction(DbConnection pConnection, StatmentHandler handler, StatmentCompletedHandler completed, StatmentErrorHandler error)
 {
     try
     {
         this.ExecuteStatmentWithTransaction(pConnection, handler);
         completed();
     }
     catch (Exception e)
     {
         error(e);
     }
 }
コード例 #2
0
ファイル: RecordMember.cs プロジェクト: fmazzant/Record
 /// <summary>
 /// Executes the statment with transaction.
 /// </summary>
 /// <param name="pConnection">The p connection.</param>
 /// <param name="handler">The handler.</param>
 /// <param name="completed">The completed.</param>
 public void ExecuteStatmentWithTransaction(DbConnection pConnection, StatmentHandler handler, StatmentCompletedHandler completed)
 {
     this.ExecuteStatmentWithTransaction(pConnection, handler);
     completed();
 }