BetweenExpression Class (RemObjects.DataAbstract.Expressions)

This is a Library topic for Data Abstract for .NET
This page is generated from external data, please do not update
Namespaces — Interfaces — Classes — Enums — Implements
Contents |
Overview
The BetweenExpression is derived from the WhereExpression class and represents expression that checks belonging to a range of values.
This is one of the classes used to dynamically build WHERE statements from code (Dynamic Where feature of Data Abstarct).
For example, a WHERE clause of this query
SELECT * FROM Customers WHERE CustomerId between 5000 AND 5010;
will be presented as:
WhereExpression lResult; lResult = new BetweenExpression( new FieldExpression("CustomerId"), new ConstantExpression("5000", DataType.Integer), new ConstantExpression("5010", DataType.Integer));
Location
- Assembly: RemObjects.DataAbstract.dll
- Namespace: RemObjects.DataAbstract.Expressions
- Ancestry: WhereExpression | BetweenExpression
Properties
| Expression |
|---|
|
Represents datapiont expression (for example, field name) in current between expression.
|
| Kind |
|
Gets the type of the expression. For the current class, the type is WhereKind.Between.
|
| Lower |
|
Represents lower value of the current between expression.
|
| Upper |
|
Represents upper value of the current between expression.
|
Class Methods
| Combine (WhereExpression, WhereExpression): WhereExpression (declared in WhereExpression) |
|---|
|
Creates new BinaryExpression from given aLeft and aRight operands, using operator And.
|
| Combine (WhereExpression, WhereExpression, BinaryOperator): WhereExpression (declared in WhereExpression) |
|
|
| FromString (declared in WhereExpression) |
|
Creates new WhereExpression from string, which should contain where node in the correct Dynamic Where XML Format.
|
| FromStringToSql (declared in WhereExpression) |
|
|
| FromXmlNode (declared in WhereExpression) |
|
Creates new WhereExpression from xml node, which should be in the correct Dynamic Where XML Format.
|
| ParseExpression (declared in WhereExpression) |
|
|
| Validate (WhereExpression): Boolean (declared in WhereExpression) |
|
Validates that WhereExpression doesn't contain any errors, using WhereValidator. The main purpose of this validation - to scan all objects of WhereExpession tree and make sure that it contains correct field names. Validates that WhereExpression doesn't contain any errors, using WhereValidator. The main purpose of this validation - to scan all objects of WhereExpession tree and make sure that it contains correct field names.
|
Instance Methods
| constructor () |
|---|
|
Creates a new instance of BetweenExpression class.
|
| constructor (WhereExpression, WhereExpression, WhereExpression) |
|
Creates new instance of BetweenExpression class.
|
| ApplyFieldMapping |
|
|
| ApplySourceTableNumber |
|
|
| ApplyTableMapping |
|
|
| ApplyTableNameOrAlias |
|
|
| ExtractAllConstantExpression |
|
|
| ExtractAllFieldNames |
|
|
| ExtractAllParams |
|
|
| ReadFromXml |
|
Creates WhereExpression from the given xml node, that should be in the correct Dynamic Where XML Format.
|
| ToSQLString (): String (declared in WhereExpression) |
|
|
| ToSQLString (StringBuilder) |
|
Converts between expression to it's SQL representation.
|
| ToString (declared in WhereExpression) |
|
|
| ToXmlNode (declared in WhereExpression) |
|
Creates query node (in the Dynamic Where XML Format) from WhereExpression.
|
| ToXmlString (declared in WhereExpression) |
|
Creates query node (in the Dynamic Where XML Format) from WhereExpression and returns it in the string format.
|
| Validate (): Boolean (declared in WhereExpression) |
|
|
| WriteToXml |
|
Creates WHERE node (in the Dynamic Where XML Format) from between expression.
|
See Also
- BetweenExpression Class
- RemObjects.DataAbstract.Expressions
- RemObjects.DataAbstract.Linq
- RemObjects.DataAbstract.Server.Sql
- Lists
- Data Abstract for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects Script for .NET: Namespaces — Classes
- Data Abstract shared: Data Types – File Types
- other editions:
- Data Abstract for Xcode: Protocols — Classes — Enums — Implements
- Data Abstract for Delphi: Interfaces — Classes — Enums — Aliases — Implements
- Data Abstract for Java: Namespaces — Interfaces — Classes — Enums — Implements
- Data Abstract for JavaScript: Objects
- Data Abstract for .NET: Namespaces — Interfaces — Classes — Enums — Implements

Product: RemObjects Data Abstract
Available Editions: Data Abstract for .NET, Delphi and Xcode