Show / Hide Table of Contents

Class Expression

A factory for unary IExpression operators

Inheritance
System.Object
Expression
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class Expression : object

Methods

| Improve this Doc View Source

All()

Returns an expression to represent '' in things like COUNT() and SELECT *

Declaration
public static IPropertyExpression All()
Returns
Type Description
IPropertyExpression

The expression representing '*'

| Improve this Doc View Source

Array(IList)

Returns an expression to represent a fixed array value

Declaration
public static IExpression Array(IList value)
Parameters
Type Name Description
IList value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Boolean(Boolean)

Returns an expression to represent a fixed value

Declaration
public static IExpression Boolean(bool value)
Parameters
Type Name Description
System.Boolean value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Date(DateTimeOffset)

Returns an expression to represent a fixed value

Declaration
public static IExpression Date(DateTimeOffset value)
Parameters
Type Name Description
DateTimeOffset value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Dictionary(IDictionary<String, Object>)

Returns an expression to represent a fixed value

Declaration
public static IExpression Dictionary(IDictionary<string, object> value)
Parameters
Type Name Description
IDictionary<System.String, System.Object> value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Double(Double)

Returns an expression to represent a fixed value

Declaration
public static IExpression Double(double value)
Parameters
Type Name Description
System.Double value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Float(Single)

Returns an expression to represent a fixed value

Declaration
public static IExpression Float(float value)
Parameters
Type Name Description
System.Single value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Int(Int32)

Returns an expression to represent a fixed value

Declaration
public static IExpression Int(int value)
Parameters
Type Name Description
System.Int32 value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Long(Int64)

Returns an expression to represent a fixed value

Declaration
public static IExpression Long(long value)
Parameters
Type Name Description
System.Int64 value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Negated(IExpression)

Returns an expression representing the negated result of an expression

Declaration
public static IExpression Negated(IExpression expression)
Parameters
Type Name Description
IExpression expression

The expression to evaluate

Returns
Type Description
IExpression

The negated result of the expression

| Improve this Doc View Source

Not(IExpression)

Returns an expression representing the negated result of an expression

Declaration
public static IExpression Not(IExpression expression)
Parameters
Type Name Description
IExpression expression

The expression to evaluate

Returns
Type Description
IExpression

The negated result of the expression

| Improve this Doc View Source

Parameter(String)

Gets an expression representing a named parameter (as set in Parameters) for use in a query

Declaration
public static IExpression Parameter(string name)
Parameters
Type Name Description
System.String name

The name of the parameter in the parameter set

Returns
Type Description
IExpression

The expression representing the parameter

| Improve this Doc View Source

Property(String)

Returns an expression representing the value of a named property

Declaration
public static IPropertyExpression Property(string property)
Parameters
Type Name Description
System.String property

The name of the property to fetch

Returns
Type Description
IPropertyExpression

An expression representing the value of a named property

| Improve this Doc View Source

String(String)

Returns an expression to represent a fixed value

Declaration
public static IExpression String(string value)
Parameters
Type Name Description
System.String value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

| Improve this Doc View Source

Value(Object)

Returns an expression to represent a fixed value. It must be one of the allowed types (i.e. the ones allowed in other methods such as String(String)

Declaration
public static IExpression Value(object value)
Parameters
Type Name Description
System.Object value

The value to use

Returns
Type Description
IExpression

An expression representing the fixed value

  • Improve this Doc
  • View Source
Back to top Generated by DocFX