Class Expression
A factory for unary IExpression operators
Inheritance
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class Expression : object
Methods
| Improve this Doc View SourceAll()
Returns an expression to represent '' in things like COUNT() and SELECT *
Declaration
public static IPropertyExpression All()
Returns
Type | Description |
---|---|
IPropertyExpression | The expression representing '*' |
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 |
Boolean(Boolean)
Returns an expression to represent a fixed
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 |
Date(DateTimeOffset)
Returns an expression to represent a fixed
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 |
Dictionary(IDictionary<String, Object>)
Returns an expression to represent a fixed
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 |
Double(Double)
Returns an expression to represent a fixed
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 |
Float(Single)
Returns an expression to represent a fixed
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 |
Int(Int32)
Returns an expression to represent a fixed
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 |
Long(Int64)
Returns an expression to represent a fixed
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 |
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 |
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 |
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 |
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 |
String(String)
Returns an expression to represent a fixed
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 |
Value(Object)
Returns an expression to represent a fixed
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 |