Click or drag to resize

Expression Class

A factory for unary IExpression operators
Inheritance Hierarchy
SystemObject
  Couchbase.Lite.QueryExpression

Namespace:  Couchbase.Lite.Query
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 0.0.0
Syntax
C#
public static class Expression

The Expression type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAny
Returns the start of an expression that will evaluate if any elements inside of an array match a given predicate Usage:
Expression.Any("x").In(Expression.Property("prop")).Satisfies(Expression.Variable("x").EqualTo(42))
Public methodStatic memberAnyAndEvery
Returns the start of an expression that will evaluate the following: 1. The array is not empty (has "any" elements) 2. Every element in the array matches a given predicate ("every" element matches) Usage:
Expression.AnyAndEvery("x").In(Expression.Property("prop")).Satisfies(Expression.Variable("x").EqualTo(42))
Public methodStatic memberEvery
Returns the start of an expression that will evaluate if every element inside of an array matches a given predicate (note: That means that an empty array will return true because "all zero" elements match) Usage:
Expression.Every("x").In(Expression.Property("prop")).Satisfies(Expression.Variable("x").EqualTo(42))
Public methodStatic memberMeta
Creates an object that can generate expressions for retrieving metadata about a result
Public methodStatic memberNegated
Returns an expression representing the negated result of an expression
Public methodStatic memberNot
Returns an expression representing the negated result of an expression
Public methodStatic memberParameter(Int32)
Gets an expression representing a positional parameter (as set in Parameters) for use in a query
Public methodStatic memberParameter(String)
Gets an expression representing a named parameter (as set in Parameters) for use in a query
Public methodStatic memberProperty
Returns an expression representing the value of a named property
Public methodStatic memberVariable
Returns an expression representing the value of a named variable assigned by earlier calls to Any(String) and family.
Top
See Also