Class Subtract
The Subtract function.
Implements
Inherited Members
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public sealed class Subtract : MathematicalExpression, ICloneable
Remarks
The function will not work with FieldDataType of type string or stringblob.
Constructors
Subtract(Argument, Argument)
Initializes a new instance of the Subtract class, and takes left and right argument as in-parameters.
Declaration
public Subtract(Argument left, Argument right)
Parameters
Type | Name | Description |
---|---|---|
Argument | left | The left-hand-side of the subtraction. |
Argument | right | The right-hand-side of the subtraction. |
Remarks
Will subtract the right-hand-side from the left-hand-side. The FieldDataTypes must be the same on both sides.
Subtract(Argument[])
Initializes a new instance of the Subtract class, and takes argument array as in-parameters.
Declaration
public Subtract(params Argument[] arguments)
Parameters
Type | Name | Description |
---|---|---|
Argument[] | arguments | An array of Arguments to subtract. |
Remarks
Makes it possible to subtract several arguments to each other.
Methods
Clone()
Clone the query. Parameter values are shared between the original and the clone.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
Object | Copy of the and node. The sub-elements are shared |
Overrides
Remarks
This method is used by the
ToString()
String output.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | a - b |
Overrides
Remarks
The function will not work with FieldDataType of type string or stringblob.