/// <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); } }
/// <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(); }