Npgsql API Docs

NpgsqlParameter Constructor (String, NpgsqlDbType, Int32, String, ParameterDirection, Boolean, Byte, Byte, DataRowVersion, Object)

Initializes a new instance of the NpgsqlParameter class with the parameter name, the DbType, the size, the source column name, a ParameterDirection, the precision of the parameter, the scale of the parameter, a DataRowVersion to use, and the value of the parameter.

[Visual Basic]
Overloads Public Sub New( _
   ByVal parameterName As String, _
   ByVal parameterType As NpgsqlDbType, _
   ByVal size As Integer, _
   ByVal sourceColumn As String, _
   ByVal direction As ParameterDirection, _
   ByVal isNullable As Boolean, _
   ByVal precision As Byte, _
   ByVal scale As Byte, _
   ByVal sourceVersion As DataRowVersion, _
   ByVal value As Object _
)
[C#]
public NpgsqlParameter(
   string parameterName,
   NpgsqlDbType parameterType,
   int size,
   string sourceColumn,
   ParameterDirection direction,
   bool isNullable,
   byte precision,
   byte scale,
   DataRowVersion sourceVersion,
   object value
);

Parameters

parameterName
The name of the parameter to map.
parameterType
One of the DbType values.
size
The length of the parameter.
sourceColumn
The name of the source column.
direction
One of the ParameterDirection values.
isNullable
true if the value of the field can be null, otherwise false.
precision
The total number of digits to the left and right of the decimal point to which Value is resolved.
scale
The total number of decimal places to which Value is resolved.
sourceVersion
One of the DataRowVersion values.
value
An Object that is the value of the NpgsqlParameter.

Remarks

Missing <remarks> documentation for M:Npgsql.NpgsqlParameter.#ctor(System.String,NpgsqlTypes.NpgsqlDbType,System.Int32,System.String,System.Data.ParameterDirection,System.Boolean,System.Byte,System.Byte,System.Data.DataRowVersion,System.Object)

See Also

NpgsqlParameter Class | Npgsql Namespace | NpgsqlParameter Constructor Overload List