Method SLTransaction.Rollback
Overload
Executes a rollback SQL (if in transaction) and disables SLTransaction.Dispose. Usually don't need to call this function explicitly. It is implicitly called when disposing this variable if the transaction was not committed.
public void Rollback(string sql = null)
Parameters
sql (string)
SQL to execute. Default: SLTransaction.SqlOfDispose. |
Exceptions
SLException
Failed to execute sql. |