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
stringThe name of the parameter as it appears in the SQL statement (e.g.,
@Id
).value
objectThe value to be assigned to the parameter.
type
TypeThe 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
Type
Gets the Type of the parameter value.
public Type Type { get; }
Property Value
Value
Gets the value assigned to the parameter.
public object Value { get; }