Table of Contents

Class QueryParameter

Namespace
FluentCommand.Query
Assembly
FluentCommand.dll

Represents a parameter used in a SQL query, including its name, value, and type information.

public class QueryParameter
Inheritance
QueryParameter
Inherited Members

Constructors

QueryParameter(string, object, Type)

Initializes a new instance of the QueryParameter class with the specified name, value, and type.

public QueryParameter(string name, object value, Type type)

Parameters

name string

The name of the parameter as it appears in the SQL statement (e.g., @Id).

value object

The value to be assigned to the parameter.

type Type

The Type of the parameter value.

Properties

Name

Gets the name of the parameter as it appears in the SQL statement.

public string Name { get; }

Property Value

string

A string representing the parameter name (e.g., @Id).

Type

Gets the Type of the parameter value.

public Type Type { get; }

Property Value

Type

A Type representing the data type of the parameter.

Value

Gets the value assigned to the parameter.

public object Value { get; }

Property Value

object

An object containing the parameter value.