Click or drag to resize

IPredicate Methods

The IPredicate type exposes the following members.

Methods
  NameDescription
Public methodGetFrameworkElementsInPredicate
Gets a list of all framework objects (fields, expression objects etc.) which are located in this IPredicate instance. E.g. a FieldCompareValuePredicate will return a list with 1 IEntityFieldCore instance: the field to compare. If no framework elements are present in the predicate, the base implementation is used, which returns an empty list. This routine is used to gather information for Linq queries.
Public methodReadXml
Deserializes the predicate data on the xml reader into a predicate instance
Public methodToQueryText
Retrieves a ready to use text representation of the contained Predicate.
Public methodToQueryText(Boolean)
Retrieves a ready to use text representation of the contained Predicate.
Public methodWriteXml
Serializes the predicate as xml to the writer specified.
Top
Extension Methods
  NameDescription
Public Extension MethodAnd
Returns a new PredicateExpression with contents: predicate AND toAdd
(Defined by PredicateExtensionMethods.)
Public Extension MethodAndNot
Returns a new PredicateExpression with contents: predicate AND NOT toAdd
(Defined by PredicateExtensionMethods.)
Public Extension MethodAs
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)
(Defined by PredicateExtensionMethods.)
Public Extension MethodAsBooleanValue
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.
(Defined by PredicateExtensionMethods.)
Public Extension MethodIsEmpty
Determines whether the specified predicate or predicate expression is empty. A null passed in is also considered empty
(Defined by ORMClassExtensions.)
Public Extension MethodOr
Returns a new PredicateExpression with contents: predicate OR toAdd
(Defined by PredicateExtensionMethods.)
Public Extension MethodOrNot
Returns a new PredicateExpression with contents: predicate OR NOT toAdd
(Defined by PredicateExtensionMethods.)
Public Extension MethodToValue
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.
(Defined by PredicateExtensionMethods.)
Top
See Also