Class QueryConditionExtensions
Provides extension methods for building query condition expressions.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class QueryConditionExtensions
Methods
View SourceBuildCondition<T>(QueryCondition, string)
Builds a lambda expression predicate from a query condition.
Declaration
public static Expression<Func<T, bool>> BuildCondition<T>(this QueryCondition condition, string parameterAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| QueryCondition | condition | The query condition to convert. |
| string | parameterAlias | The alias to use for the parameter in the expression. |
Returns
| Type | Description |
|---|---|
| Expression<Func<T, bool>> | A lambda expression that can be used to filter entities. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the entity being queried. |