DevForce Help Reference
Where(IQueryable,IPredicateDescription) Method
Example 


Filters a sequence of values based on a PredicateDescription. Loosely typed version.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Where( _
   ByVal source As IQueryable, _
   ByVal predicateDescription As IPredicateDescription _
) As IQueryable
'Usage
 
Dim source As IQueryable
Dim predicateDescription As IPredicateDescription
Dim value As IQueryable
 
value = QueryableExtensions.Where(source, predicateDescription)

Parameters

source
predicateDescription
Example
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

QueryableExtensions Class
QueryableExtensions Members
Overload List

Send Feedback