Show / Hide Table of Contents

    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(string name, ParameterDirection direction) 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(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.
    Back to top Generated by Appeon