See Also

DbParameterBase Class  | DbParameterBase Members

Language

Visual Basic

C#

Show All

See AlsoLanguagesDevart.DataSend comments on this topic.

Value Property

Devart.Common Namespace > DbParameterBase Class : Value Property (DbParameterBase)

Gets or sets the value of the parameter.

[Visual Basic]
Overrides Public Property Value As Object
[C#]
public override object Value {get; set;}

Return Type

An Object that is the value of the parameter. The default value is null.

Remarks

For input parameters, the value is bound to the DbCommand that is sent to the server. For output and return-value parameters, the value is set on completion of the DbCommand and after the DbDataReader is closed.

When sending a null parameter value to the server, the user must specify DBNull, not null. A null value in the system is an empty object that has no value. DBNull is used to represent null values.

If the application specifies the database type, the bound value is converted to that type when the provider sends the data to the server. The provider attempts to convert any type of value if it supports the IConvertible interface. Conversion errors may result if the specified type is not compatible with the value.

The DbType property can be inferred by setting Value. If applicable, the size, precision, and scale will also be inferred from Value.

The Value property is overwritten by the Update method.

See Also

DbParameterBase Class  | DbParameterBase Members

 

 


© 2002 - 2013 Devart. All Rights Reserved.