TSource
IdeaBlade DevForce 2010 Help Reference
Where<TSource>(IEntityQuery<TSource>,Expression<Func<TSource,Boolean>>) Method
See Also  Example Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > Where Method : Where<TSource>(IEntityQuery<TSource>,Expression<Func<TSource,Boolean>>) Method



source1
predicate
Filters a sequence of values based on a predicate.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function Where(Of TSource)( _
   ByVal source1 As IEntityQuery(Of TSource), _
   ByVal predicate As Expression(Of Func(Of TSource,Boolean)) _
) As IEntityQuery(Of TSource)
Visual Basic (Usage)Copy Code
Dim source1 As IEntityQuery(Of TSource)
Dim predicate As Expression(Of Func(Of TSource,Boolean))
Dim value As IEntityQuery(Of TSource)
 
value = EntityQueryExtensions.Where(Of TSource)(source1, predicate)

Parameters

source1
predicate

Type Parameters

TSource

Example

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

var query = mgr.Customers.Where(c => c.Country == "UK");
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.