Class QueryParameter
Information about a parameter pass to a function in a IQueryStrategy.
Inheritance
Inherited Members
Namespace: Cqrs.Repositories.Queries
Assembly: Cqrs.dll
Syntax
public class QueryParameter : IComparable<QueryParameter>
Constructors
QueryParameter()
Instantiates a new instance of QueryParameter
Declaration
public QueryParameter()
QueryParameter(String, Object)
Instantiates a new instance of QueryParameter
Declaration
public QueryParameter(string parameterName, object parameterValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | |
System.Object | parameterValue |
Properties
ParameterName
The name of the parameter.
Declaration
public string ParameterName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParameterValue
The value of the parameter.
Declaration
public object ParameterValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
CompareTo(QueryParameter)
Compares the current object with another object of the same type.
Declaration
public int CompareTo(QueryParameter other)
Parameters
Type | Name | Description |
---|---|---|
QueryParameter | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Int32 | A value that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the |
Implements
CompareTo(Object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Int32 | A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
GetParameterValue<T>()
Returns ParameterValue cast to T
.
Declaration
public T GetParameterValue<T>()
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |