IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > Where Method : Where<TSource>(IEntityQuery<TSource>,IPredicateDescription) Method |
'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)
[Extension()] public static IEntityQuery<TSource> Where<TSource>( IEntityQuery<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