ParamValue Class
.NET Standard 2.x
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
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.
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 |
ParamValue | Creates a new ParamValue object and specifies the name and value of the parameter. You can also specify the direction type of the parameter. The default is ParameterDirection.Input . |
New |
ParamValue | Creates a new ParamValue object and specifies the name and the direction type of the parameter. |