IdeaBlade DevForce 2010 Help Reference
PredicateDescription Constructor(String,FilterOperator,Object,Boolean)
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > PredicateDescription Class > PredicateDescription Constructor : PredicateDescription Constructor(String,FilterOperator,Object,Boolean)



propertyPath
The property name to use in the filter
filterOp
The filter operator
value
The filter value
ignoreCase
Whether string comparisons are case sensitive
Create a new instance of this class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal propertyPath As String, _
   ByVal filterOp As FilterOperator, _
   ByVal value As Object, _
   Optional ByVal ignoreCase As Boolean _
)
Visual Basic (Usage)Copy Code
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)
C# 
public PredicateDescription( 
   string propertyPath,
   FilterOperator filterOp,
   object value,
   bool ignoreCase
)
C++/CLI 
public:
PredicateDescription( 
   String^ propertyPath,
   FilterOperator filterOp,
   Object^ value,
   bool 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

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

© 2013 All Rights Reserved.