IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > PredicateDescription Class > PredicateDescription Constructor : PredicateDescription Constructor(String,FilterOperator,Object,Boolean) |
'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)
public PredicateDescription( string propertyPath, FilterOperator filterOp, object value, bool ignoreCase )
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();
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