Click or drag to resize

PredicateExtensionMethods Class

Extension methods defined for IPredicate implementing classes.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.QuerySpecPredicateExtensionMethods

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public static class PredicateExtensionMethods

The PredicateExtensionMethods type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAnd
Returns a new PredicateExpression with contents: predicate AND toAdd
Public methodStatic memberAndNot
Returns a new PredicateExpression with contents: predicate AND NOT toAdd
Public methodStatic memberAs
Specifies an alias for the value returned by the predicate when the predicate is used in a projection. Equal to: Functions.IIF(predicate, true, false).As(alias)
Public methodStatic memberAsBooleanValue
Returns the predicate wrapped in a CASE WHEN (predicate) THEN 1 ELSE 0 END construct (as a function call expression) so the predicate can be used as a real boolean value in other places than the Where clause.
Public methodStatic memberCaseInsensitive(FieldCompareValuePredicate)
Makes the predicate a case-insensitive comparison by using the UPPER() function on the value to compare to the pattern specified in the predicate. Make sure the predicate's value is specified with uppercase characters. Only useful on case-sensitive collations.
Public methodStatic memberCaseInsensitive(FieldLikePredicate)
Makes the predicate a case-insensitive comparison by using the UPPER() function on the value to compare to the pattern specified in the predicate. Make sure the predicate's pattern is specified with uppercase characters. Only useful on case-sensitive collations.
Public methodStatic memberOr
Returns a new PredicateExpression with contents: predicate OR toAdd
Public methodStatic memberOrNot
Returns a new PredicateExpression with contents: predicate OR NOT toAdd
Public methodStatic memberToValue
Placeholder method which is used in a Select(lambda func) projection inside the lambda to specify the type of the result of the passed in predicate. Use this method only when specifying a predicate in the projection lambda.
Top
See Also