IdeaBlade DevForce 2010 Help Reference
Where(IQueryable,IPredicateDescription) Method
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > QueryableExtensions Class > Where Method : Where(IQueryable,IPredicateDescription) Method



source
predicateDescription
Filters a sequence of values based on a PredicateDescription. Loosely typed version.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function Where( _
   ByVal source As IQueryable, _
   ByVal predicateDescription As IPredicateDescription _
) As IQueryable
Visual Basic (Usage)Copy Code
Dim source As IQueryable
Dim predicateDescription As IPredicateDescription
Dim value As IQueryable
 
value = QueryableExtensions.Where(source, predicateDescription)

Parameters

source
predicateDescription

Example

C#Copy Code
var mgr = new DomainModelEntityManager();

var entityType = typeof(Customer);
var baseQuery = EntityQuery.Create(entityType, mgr);
var predicate = PredicateBuilder.Make(typeof(Customer), "Country", FilterOperator.StartsWith, "U");
var query = baseQuery.Where(predicate);
var list = query.Execute();

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.