Show / Hide Table of Contents

Class DateDiff

Argument function to get the difference between two dates

Inheritance
object
QueryElement
Argument
ArgumentFunction
NonCoercedArgumentFunction
DateTimeArgumentFunction
DateDiff
Implements
ICloneable
Inherited Members
ArgumentFunction.GetMainField()
ArgumentFunction.ArgumentObject
Argument.Equal(Argument)
Argument.UnEqual(Argument)
Argument.LessThan(Argument)
Argument.LessThanOrEqual(Argument)
Argument.GreaterThan(Argument)
Argument.GreaterThanOrEqual(Argument)
Argument.Like(Argument)
Argument.Like(string)
Argument.NotLike(Argument)
Argument.NotBetween(Argument, Argument)
Argument.Between(Argument, Argument)
Argument.In(params Argument[])
Argument.HasAny(params Argument[])
Argument.HasAll(params Argument[])
Argument.MissingAny(params Argument[])
Argument.MissingAll(params Argument[])
Argument.IsNull()
Argument.IsNotNull()
Argument.NotIn(params Argument[])
Argument.HasFlag(Argument)
Argument.HasNoFlag(Argument)
Argument.ToArgumentArray<T>(T[])
Argument.ToArgumentArray<T>(T[], bool)
Argument.GetSubElements()
Argument.Alias
Argument.DataType
Argument.Size
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public class DateDiff : DateTimeArgumentFunction, ICloneable

Constructors

DateDiff(DatePart, Argument, Argument)

Argument function to get the difference between two dates

Declaration
public DateDiff(DateDiff.DatePart part, Argument start_date, Argument end_date)
Parameters
Type Name Description
DateDiff.DatePart part
Argument start_date
Argument end_date

Properties

LeftArg

Argument function to get the difference between two dates

Declaration
public Argument LeftArg { get; }
Property Value
Type Description
Argument

Part

Argument function to get the difference between two dates

Declaration
public DateDiff.DatePart Part { get; }
Property Value
Type Description
DateDiff.DatePart

RightArg

Argument function to get the difference between two dates

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
QueryElement.Clone()
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 get the difference between two dates

Declaration
public static string DatePartToString(DateDiff.DatePart part)
Parameters
Type Name Description
DateDiff.DatePart part
Returns
Type Description
string

ToString()

Argument function to get the difference between two dates

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

ICloneable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top