IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > QueryableExtensions Class > Where Method : Where<TSource>(IQueryable<TSource>,IPredicateDescription) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function Where(Of TSource)( _ ByVal source As IQueryable(Of TSource), _ ByVal predicateDescription As IPredicateDescription _ ) As IQueryable(Of TSource)
'Usage
Dim source As IQueryable(Of TSource) Dim predicateDescription As IPredicateDescription Dim value As IQueryable(Of TSource) value = QueryableExtensions.Where(Of TSource)(source, predicateDescription)
[Extension()] public static IQueryable<TSource> Where<TSource>( IQueryable<TSource> source, IPredicateDescription predicateDescription )
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(); }
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