This class is use to enclose a When SqlError block in a using(new WhenSqlError()) block. On entering the block a counter is increased, when exiting the block the counter is decreased. When the counter is zero and a sql error occurs, the Sql implementation will try to use the global error handler. If the counter is non-zero the implementation does not call the global handler. If this is block omitted, the implementation will alway try to call the global Sql Error handler. If the global handler is not defined, the behavior of the application is unaltered.

Namespace: PPJ.Runtime.Sql
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public class WhenSqlError : IDisposable

Inheritance Hierarchy

System..::..Object
  PPJ.Runtime.Sql..::..WhenSqlError

See Also