NSoft.NFramework.Data.PostgreSql.EnterpriseLibrary.NpgsqlDatabase.CreateParameter C# (CSharp) Method

CreateParameter() protected method

Adds a new instance of a DbParameter object.
protected CreateParameter ( string name, NpgsqlDbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : DbParameter
name string The name of the parameter.
dbType NpgsqlDbType One of the values.
size int The maximum size of the data within the column.
direction ParameterDirection One of the values.
nullable bool A value indicating whether the parameter accepts (Nothing in Visual Basic) values.
precision byte The maximum number of digits used to represent the .
scale byte The number of decimal places to which is resolved.
sourceColumn string The name of the source column mapped to the DataSet and used for loading or returning the .
sourceVersion DataRowVersion One of the values.
value object The value of the parameter.
return System.Data.Common.DbParameter
        protected DbParameter CreateParameter(string name,
                                              NpgsqlDbType dbType,
                                              int size,
                                              ParameterDirection direction,
                                              bool nullable,
                                              byte precision,
                                              byte scale,
                                              string sourceColumn,
                                              DataRowVersion sourceVersion,
                                              object value) {
            var param = CreateParameter(name) as NpgsqlParameter;
            ConfigureParameter(param, name, dbType, size, direction, nullable, precision, scale, sourceColumn, sourceVersion, value);
            return param;
        }