Class SqlExceptionExtensions
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Extension methods for Microsoft.Data.SqlClient.SqlException class.
public static class SqlExceptionExtensions
- Inheritance
-
objectSqlExceptionExtensions
Methods
HasDeadlockOccured(SqlException)
Returns true when given Microsoft.Data.SqlClient.SqlException is caused by deadlock.
public static bool HasDeadlockOccured(this SqlException exception)
Parameters
exceptionSqlException
Returns
- bool
IsReadOnlyModeException(SqlException)
Returns true when given Microsoft.Data.SqlClient.SqlException indicates a read-only mode violation.
public static bool IsReadOnlyModeException(this SqlException exception)
Parameters
exceptionSqlException
Returns
- bool