Table of Contents

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

parameters IEnumerable<QueryParameter>

The collection of parameters to initialize with.

Fields

Empty

Gets an empty collection of query parameters.

public static readonly QueryParameters Empty

Field Value

QueryParameters

Properties

Count

Gets the number of parameters in the collection.

public int Count { get; }

Property Value

int

Methods

Add(QueryParameter)

Adds a parameter to the collection.

public void Add(QueryParameter parameter)

Parameters

parameter QueryParameter

The parameter to add.

Add(string, Type)

Adds a parameter to the collection.

public void Add(string name, Type type)

Parameters

name string

The name of the parameter.

type Type

The type of the parameter.

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.