Version

OperationContext Class

Maintains information helpful during the processing of database Command sequences.
Syntax
'Declaration
 
Public NotInheritable Class OperationContext 
public sealed class OperationContext 
Remarks

This class is responsible for managing the complexity associated with getting database-independent parameter set schemas, and initializing IDataParameterCollection lists suitable for the database Command at each stage of processing. Each operation context describes pre-defined information helpful to data binding and keyed by the name of the operation.

Developers only need to use this class when extending one of the supplied WebSchedule data providers. Normally when implementing operation methods to handle a DataContext subclass on a custom data provider for some named operation, the inheritor must create an OperationContext. Thereafter, they can use it to retrieve a dynamic SQL template (and resolve any placeholders by passing it to BindStatement) or the stored procedure name for a new Command object created with the CreateCommand method, and retrieve a data parameter set for use with the Command object by calling InitializeParameters.

An OperationContext may describe the commands (and associated parameter sets) for multi-command operations. In these circumstances, the notion of a command sequence number applies when accessing information specific to a given step in a multi-command operation. Command sequence numbering starts at zero.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also