Create a new instance of this class.
Syntax
Parameters
- propertyPath
- The property name to use in the filter
- filterOp
- The filter operator
- value
- The filter value
- ignoreCase
- Whether string comparisons are case sensitive
Example
C# | Copy Code |
---|
var mgr = new DomainModelEntityManager();
var entityType = typeof(Customer);
var rootQuery = EntityQuery.Create(entityType, mgr);
// Two predicates - one a simple property, one a method
var pd1 = new PredicateDescription("OrderSummaries.Count()", FilterOperator.IsGreaterThan, 10);
var pd2 = new PredicateDescription("Country", FilterOperator.IsEqualTo, "USA");
var query = rootQuery.Where(pd1.And(pd2));
var results = 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