LinqBuilderExtensions DynamicQuery T  Method (IQueryable T , Query, String, Boolean)EasyQuery WinForms API Reference
Filters a sequence of values based on a predicate specified by Query.

Namespace: Korzh.EasyQuery
Assembly: Korzh.EasyQuery.NET40 (in Korzh.EasyQuery.NET40.dll) Version:

public static IQueryable<T> DynamicQuery<T>(
	this IQueryable<T> source,
	Query query,
	string orderByProperty = null,
	bool descending = false


Type: OnlineSystem.Linq IQueryable T 
The source - some IQueryable object.
Type: Korzh.EasyQuery Query
The query - a Query object.
orderByProperty (Optional)
Type: OnlineSystem String
The name of the property to order by the result list.
descending (Optional)
Type: OnlineSystem Boolean
if set to true then we use descending order.
Type Parameters

Any type

Return Value

Type: OnlineIQueryable T 
A IQueryable<T> that contains elements from the input sequence that satisfy the conditions defined in query.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineIQueryable T . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also