ParameterValue Properties |
The ParameterValue type exposes the following members.
Name | Description | |
---|---|---|
DbType |
Gets or sets the DbType value to use on the created DbParameter. By default, it's left to the DbParameter what type to use based on the Value specified.
For strings and DateTime values this might be problematic as often multiple DbType values can be chosen for a given .NET type.
| |
Direction |
Gets or sets the direction of the parameter. Default is Input.
| |
IsNullable |
Gets or sets the value to set the DbParameter.IsNullable to. In general this isn't really necessary as most ADO.NET providers ignore the value. In case you need
to specify expliclty whether the parameter accepts null values, set this property to true. By default DbParameter.IsNullable isn't set and left to the default, which is false.
| |
Precision |
Gets or sets the precision to use for the parameter. By default the precision isn't set.
| |
Scale |
Gets or sets the scale to use for the parameter. By default the scale isn't set.
| |
Size |
Gets or sets the size to use for the parameter. By default the length isn't set
| |
Value |
Gets or sets the for the parameter. Set before the query, the value specified is used as the parameter value. If 'Direction' is set to an output type,
this property will contain the output value after the query has been executed / resultset has been consumed.
|