Click or drag to resize
SqlExecutionHelper Class
Contains utility methods for SQL execution retries.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperSqlExecutionHelper
        CMS.DataEngineSqlExecutionHelper

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public class SqlExecutionHelper : AbstractHelper<SqlExecutionHelper>

The SqlExecutionHelper type exposes the following members.

Constructors
  NameDescription
Public methodSqlExecutionHelper
Top
Methods
  NameDescription
Public methodStatic memberExecuteWithDeadlockRetryTResult

Executes the given executionFunc while catching exception resulting from the execution. If the exception thrown contains SqlException as its inner exception and the Number equals to 1205 (deadlock), the execution is retried.

The execution is never retried if IsInTransaction indicates the execution is part of a transaction.

If the retry limit is reached, the exception resulting from the last execution is re-thrown.

Protected methodExecuteWithDeadlockRetryInternalTResult

Executes the given executionFunc while catching exception resulting from the execution. If the exception thrown contains SqlException as its inner exception and the Number equals to 1205 (deadlock), the execution is retried.

The execution is never retried if IsInTransaction indicates the execution is part of a transaction.

If the retry limit is reached, the exception resulting from the last execution is re-thrown.

Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also