Table of Contents

Class DataStatementOptions

Namespace
Cuemon.Data
Assembly
Cuemon.Data.dll

Configuration options for DataStatement.

public class DataStatementOptions : IValidatableParameterObject, IParameterObject
Inheritance
Object
DataStatementOptions
Implements

Constructors

DataStatementOptions()

Initializes a new instance of the DataStatementOptions class.

public DataStatementOptions()

Properties

DefaultTimeout

Gets or sets the default wait time before terminating the attempt to execute a command and generating an error.

public static TimeSpan DefaultTimeout { get; set; }

Property Value

TimeSpan

The System.TimeSpan to wait for the command to execute. Default value is 1 minute and 30 seconds.

Parameters

Gets or sets the parameters to use in the command.

public IDataParameter[] Parameters { get; set; }

Property Value

IDataParameter[]

The parameters to use in the command.

Timeout

Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

The timespan to wait for the command to execute. Default value is 1 minute and 30 seconds.

Type

Gets the command type value to execute.

public CommandType Type { get; set; }

Property Value

CommandType

The command type value to execute. Default type value is System.Data.CommandType.Text.

Methods

ValidateOptions()

Determines whether the public read-write properties of this instance are in a valid state.

public void ValidateOptions()

Remarks

This method is expected to throw exceptions when one or more conditions fails to be in a valid state.