Class SybaseMemberTranslator.DateFunctionsTranslator
protected class SybaseMemberTranslator.DateFunctionsTranslator : DateFunctionsTranslatorBase, IMemberTranslator
- Inheritance
-
object
SybaseMemberTranslator.DateFunctionsTranslator
- Implements
-
- Inherited Members
-
- Extension Methods
-
Methods
DatePartToStr(DateParts, bool)
public static string? DatePartToStr(Sql.DateParts part, bool forDateAdd)
Parameters
part Sql.DateParts
forDateAdd bool
Returns
- string
TranslateDateTimeDateAdd(ITranslationContext, TranslationFlags, ISqlExpression, ISqlExpression, DateParts)
protected override ISqlExpression? TranslateDateTimeDateAdd(ITranslationContext translationContext, TranslationFlags translationFlag, ISqlExpression dateTimeExpression, ISqlExpression increment, Sql.DateParts datepart)
Parameters
translationContext ITranslationContext
translationFlag TranslationFlags
dateTimeExpression ISqlExpression
increment ISqlExpression
datepart Sql.DateParts
Returns
- ISqlExpression
TranslateDateTimeDatePart(ITranslationContext, TranslationFlags, ISqlExpression, DateParts)
protected override ISqlExpression? TranslateDateTimeDatePart(ITranslationContext translationContext, TranslationFlags translationFlag, ISqlExpression dateTimeExpression, Sql.DateParts datepart)
Parameters
translationContext ITranslationContext
translationFlag TranslationFlags
dateTimeExpression ISqlExpression
datepart Sql.DateParts
Returns
- ISqlExpression
TranslateDateTimeOffsetDatePart(ITranslationContext, TranslationFlags, ISqlExpression, DateParts)
protected override ISqlExpression? TranslateDateTimeOffsetDatePart(ITranslationContext translationContext, TranslationFlags translationFlag, ISqlExpression dateTimeExpression, Sql.DateParts datepart)
Parameters
translationContext ITranslationContext
translationFlag TranslationFlags
dateTimeExpression ISqlExpression
datepart Sql.DateParts
Returns
- ISqlExpression
TranslateDateTimeTruncationToDate(ITranslationContext, ISqlExpression, TranslationFlags)
protected override ISqlExpression? TranslateDateTimeTruncationToDate(ITranslationContext translationContext, ISqlExpression dateExpression, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dateExpression ISqlExpression
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateMakeDateTime(ITranslationContext, DbDataType, ISqlExpression, ISqlExpression, ISqlExpression, ISqlExpression?, ISqlExpression?, ISqlExpression?, ISqlExpression?)
protected override ISqlExpression? TranslateMakeDateTime(ITranslationContext translationContext, DbDataType resulType, ISqlExpression year, ISqlExpression month, ISqlExpression day, ISqlExpression? hour, ISqlExpression? minute, ISqlExpression? second, ISqlExpression? millisecond)
Parameters
translationContext ITranslationContext
resulType DbDataType
year ISqlExpression
month ISqlExpression
day ISqlExpression
hour ISqlExpression
minute ISqlExpression
second ISqlExpression
millisecond ISqlExpression
Returns
- ISqlExpression
TranslateNow(ITranslationContext, TranslationFlags)
protected override ISqlExpression? TranslateNow(ITranslationContext translationContext, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateServerNow(ITranslationContext, TranslationFlags)
protected override ISqlExpression? TranslateServerNow(ITranslationContext translationContext, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateUtcNow(ITranslationContext, TranslationFlags)
protected override ISqlExpression? TranslateUtcNow(ITranslationContext translationContext, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateZonedUtcNow(ITranslationContext, DbDataType, TranslationFlags)
protected override ISqlExpression? TranslateZonedUtcNow(ITranslationContext translationContext, DbDataType dbDataType, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dbDataType DbDataType
translationFlags TranslationFlags
Returns
- ISqlExpression