Name

IDbDataParameter

Synopsis

This interface represents a parameter for a parameterized query or stored procedure Command. A provider implements this interface in a provider-specific parameter object, such as System.Data.SqlClient.SqlParameter. The properties include Precision (the maximum number of digits for numeric values), Scale (the maximum number of decimal places), and Size (the maximum size of the value, in bytes). Other properties are inherited from the IDataParameter interface, which this interface implements.

public interface IDbDataParameter : IDataParameter {

// Public Instance Properties

   public byte Precision{set; get; } 

   public byte Scale{set; get; } 

   public int Size{set; get; } 

}

Implemented By

System.Data.OleDb.OleDbParameter, System.Data.OracleClient.OracleParameter, System.Data.SqlClient.SqlParameter

Returned By

IDbCommand.CreateParameter( )

Get ADO.NET in a Nutshell now with O’Reilly online learning.

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