ParamValue Class
.NET Standard 2.x
Represents the value for a SQL parameter.
Once you want to execute a SQL statement and pass in the value for a SQL parameter, you can create an instance of the ParamValue class as an argument.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public class ParamValue
Property
| Name | Return Type | Description |
|---|---|---|
| DataType | Object | Gets the data type of the parameter value. |
| Direction | SnapObjects.Data.ParameterDirection | Gets the direction type of the parameter. |
| Name | string | Gets the name of the parameter. |
| Value | object | Gets the value of the parameter. |
Method
| Name | Return Type | Description |
|---|---|---|
| New(string name, object value) | ParamValue | Creates a new ParamValue object and specifies the name and value of the parameter. |
| New<Type>(string name, object value, ParameterDirection direction = ParameterDirection.Input) | ParamValue | Creates a new ParamValue object and specifies the name and the direction type of the parameter. |