Implementing IDataParameter and IDataParameterCollection

The first items to deal with when creating the custom provider are parameters. Parameters are associated with commands and can be input parameters, output parameters, or both. Those parameters are associated with data commands via a customized collection of parameters.

The IDataParameter Interface

The IDataParameter interface is fairly simple. Table 28.1 lists the properties defined by the IDataParameter interface.

Table 28.1. IDataParameter Properties
DbTypeIndicates the database type of the parameter. The value is an element of the DbType enumeration.
DirectionIndicates whether the parameter is input, output, or both.
IsNullableIndicates whether the parameter can contain ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.