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
PropertyDescription
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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.