Class QueryParameters
- Namespace
- Cratis.Applications.Queries
- Assembly
- Cratis.Applications.dll
Represents a collection of query parameters.
public class QueryParameters : IEnumerable<QueryParameter>, IEnumerable- Inheritance
- 
      
      QueryParameters
- Implements
- Inherited Members
- Extension Methods
Constructors
QueryParameters()
Initializes a new instance of the QueryParameters class.
public QueryParameters()QueryParameters(IEnumerable<QueryParameter>)
Initializes a new instance of the QueryParameters class.
public QueryParameters(IEnumerable<QueryParameter> parameters)Parameters
- parametersIEnumerable<QueryParameter>
- The collection of parameters to initialize with. 
Fields
Empty
Gets an empty collection of query parameters.
public static readonly QueryParameters EmptyField Value
Properties
Count
Gets the number of parameters in the collection.
public int Count { get; }Property Value
Methods
Add(QueryParameter)
Adds a parameter to the collection.
public void Add(QueryParameter parameter)Parameters
- parameterQueryParameter
- The parameter to add. 
Add(string, Type)
Adds a parameter to the collection.
public void Add(string name, Type type)Parameters
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<QueryParameter> GetEnumerator()Returns
- IEnumerator<QueryParameter>
- An enumerator that can be used to iterate through the collection.