IdeaBlade DevForce 2010 Help Reference
Not Method
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > DynamicQueryExtensions Class : Not Method



predicate
Returns CompositePredicateDescription which represents a logical NOT operation of the current PredicateDescription.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function Not( _
   ByVal predicate As IPredicateDescription _
) As CompositePredicateDescription
Visual Basic (Usage)Copy Code
Dim predicate As IPredicateDescription
Dim value As CompositePredicateDescription
 
value = DynamicQueryExtensions.Not(predicate)

Parameters

predicate

Example

C#Copy Code
public void DynamicQueryNot() {
  var entityType = typeof(Product);
  var baseQuery = EntityQuery.Create(entityType);
  var pd = new PredicateDescription("Category.Name", FilterOperator.StartsWith, "A");
  var pdNot = pd.Not();
  var list = manager.ExecuteQuery(baseQuery.Where(pdNot));
}

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.