Class QueryPredicateExtensions
A collection of extension methods for working with queries.
Inheritance
System.Object
QueryPredicateExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Cqrs.dll
Syntax
public static class QueryPredicateExtensions
Methods
GetValue<TResult>(QueryParameter)
Gets the value from the provided queryParameter
cast to TResult
.
Declaration
public static TResult GetValue<TResult>(this QueryParameter queryParameter)
Parameters
Returns
Type Parameters
GetValue<TResult>(ISet<QueryParameter>, String)
Gets the value from the provided collection
cast to TResult
.
Declaration
public static TResult GetValue<TResult>(this ISet<QueryParameter> collection, string parameterName)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ISet<QueryParameter> |
collection |
|
System.String |
parameterName |
|
Returns
Type Parameters
GetValue<TResult>(ISet<KeyValuePair<String, Object>>, String)
Gets the value from the provided collection
cast to TResult
.
Declaration
public static TResult GetValue<TResult>(this ISet<KeyValuePair<string, object>> collection, string key)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ISet<System.Collections.Generic.KeyValuePair<System.String, System.Object>> |
collection |
|
System.String |
key |
|
Returns
Type Parameters
GetValue<TResult>(KeyValuePair<String, Object>)
Gets the value from the provided keyValuePair
cast to TResult
.
Declaration
public static TResult GetValue<TResult>(this KeyValuePair<string, object> keyValuePair)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<System.String, System.Object> |
keyValuePair |
|
Returns
Type Parameters
GetValue<TResult>(SortedSet<QueryParameter>, Int32)
Gets the value from the provided collection
cast to TResult
.
Declaration
public static TResult GetValue<TResult>(this SortedSet<QueryParameter> collection, int index)
Parameters
Type |
Name |
Description |
System.Collections.Generic.SortedSet<QueryParameter> |
collection |
|
System.Int32 |
index |
|
Returns
Type Parameters
GetValue<TResult>(SortedSet<QueryParameter>, String)
Gets the value from the provided collection
cast to TResult
.
Declaration
public static TResult GetValue<TResult>(this SortedSet<QueryParameter> collection, string parameterName)
Parameters
Type |
Name |
Description |
System.Collections.Generic.SortedSet<QueryParameter> |
collection |
|
System.String |
parameterName |
|
Returns
Type Parameters
GetValue<TResult>(SortedSet<KeyValuePair<String, Object>>, Int32)
Gets the value from the provided collection
cast to TResult
.
Declaration
public static TResult GetValue<TResult>(this SortedSet<KeyValuePair<string, object>> collection, int index)
Parameters
Type |
Name |
Description |
System.Collections.Generic.SortedSet<System.Collections.Generic.KeyValuePair<System.String, System.Object>> |
collection |
|
System.Int32 |
index |
|
Returns
Type Parameters