DevForce Help Reference
PredicateDescription Constructor(String,FilterOperator,Object,Boolean)
Example 


The property name to use in the filter
The filter operator
The filter value
Whether string comparisons are case sensitive
Create a new instance of this class.
Syntax
'Declaration
 
Public Function New( _
   ByVal propertyPath As String, _
   ByVal filterOp As FilterOperator, _
   ByVal value As Object, _
   Optional ByVal ignoreCase As Boolean _
)
'Usage
 
Dim propertyPath As String
Dim filterOp As FilterOperator
Dim value As Object
Dim ignoreCase As Boolean
 
Dim instance As New PredicateDescription(propertyPath, filterOp, value, ignoreCase)

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
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 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

See Also

Reference

PredicateDescription Class
PredicateDescription Members
Overload List

Send Feedback