Class DateAdd
Argument function to add a specified interval to a date
Implements
Inherited Members
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public class DateAdd : NonCoercedArgumentFunction, ICloneable
Constructors
DateAdd(DatePart, Argument, Argument)
Argument function to add a specified interval to a date
Declaration
public DateAdd(DatePart part, Argument number, Argument datetime)
Parameters
| Type | Name | Description |
|---|---|---|
| DatePart | part | |
| Argument | number | |
| Argument | datetime |
Properties
LeftArg
Argument function to add a specified interval to a date
Declaration
public Argument LeftArg { get; }
Property Value
| Type | Description |
|---|---|
| Argument |
Part
Argument function to add a specified interval to a date
Declaration
public DatePart Part { get; }
Property Value
| Type | Description |
|---|---|
| DatePart |
RightArg
Argument function to add a specified interval to a date
Declaration
public Argument RightArg { get; }
Property Value
| Type | Description |
|---|---|
| Argument |
Methods
Clone()
Creates a copy of the query elements, but shares parameter values with the original, so it is not a complete copy.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| object | Copy of all the restrictions/joins |
Overrides
Remarks
This method is used by the SentryQueryUpdater to modify a query with sentry extensions without affecting the original query.
DatePartToString(DatePart)
Argument function to add a specified interval to a date
Declaration
public static string DatePartToString(DatePart part)
Parameters
| Type | Name | Description |
|---|---|---|
| DatePart | part |
Returns
| Type | Description |
|---|---|
| string |
ToString()
Argument function to add a specified interval to a date
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |