DevForce Help Reference
Where<TSource>(IEntityQuery<TSource>,IPredicateDescription) Method
Example 


Filters a sequence of values based on a IdeaBlade.Linq.PredicateDescription.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Where(Of TSource)( _
   ByVal source As IEntityQuery(Of TSource), _
   ByVal predicateDescription As IPredicateDescription _
) As IEntityQuery(Of TSource)
'Usage
 
Dim source As IEntityQuery(Of TSource)
Dim predicateDescription As IPredicateDescription
Dim value As IEntityQuery(Of TSource)
 
value = EntityQueryExtensions.Where(Of TSource)(source, predicateDescription)

Parameters

source
predicateDescription

Type Parameters

TSource
Example
public void WherePredicateQuery() {
  var mgr = new DomainModelEntityManager();
  var predicate = PredicateBuilder.Make(typeof(Customer), "Country", FilterOperator.StartsWith, "U");
  var query = mgr.Customers.Where(predicate);
  var list = query.ToList();
}
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

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List

Send Feedback