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