Class DateFunctionsTranslatorBase
public abstract class DateFunctionsTranslatorBase : MemberTranslatorBase, IMemberTranslator
- Inheritance
-
object
DateFunctionsTranslatorBase
- Implements
-
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
DateFunctionsTranslatorBase()
protected DateFunctionsTranslatorBase()
Methods
TranslateDateOnlyDateAdd(ITranslationContext, TranslationFlags, ISqlExpression, ISqlExpression, DateParts)
protected virtual ISqlExpression? TranslateDateOnlyDateAdd(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
TranslateDateOnlyDatePart(ITranslationContext, TranslationFlags, ISqlExpression, DateParts)
protected virtual ISqlExpression? TranslateDateOnlyDatePart(ITranslationContext translationContext, TranslationFlags translationFlag, ISqlExpression dateTimeExpression, Sql.DateParts datepart)
Parameters
translationContext ITranslationContext
translationFlag TranslationFlags
dateTimeExpression ISqlExpression
datepart Sql.DateParts
Returns
- ISqlExpression
TranslateDateTimeDateAdd(ITranslationContext, TranslationFlags, ISqlExpression, ISqlExpression, DateParts)
protected virtual 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 virtual ISqlExpression? TranslateDateTimeDatePart(ITranslationContext translationContext, TranslationFlags translationFlag, ISqlExpression dateTimeExpression, Sql.DateParts datepart)
Parameters
translationContext ITranslationContext
translationFlag TranslationFlags
dateTimeExpression ISqlExpression
datepart Sql.DateParts
Returns
- ISqlExpression
TranslateDateTimeOffsetDateAdd(ITranslationContext, TranslationFlags, ISqlExpression, ISqlExpression, DateParts)
protected virtual ISqlExpression? TranslateDateTimeOffsetDateAdd(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
TranslateDateTimeOffsetDatePart(ITranslationContext, TranslationFlags, ISqlExpression, DateParts)
protected virtual ISqlExpression? TranslateDateTimeOffsetDatePart(ITranslationContext translationContext, TranslationFlags translationFlag, ISqlExpression dateTimeExpression, Sql.DateParts datepart)
Parameters
translationContext ITranslationContext
translationFlag TranslationFlags
dateTimeExpression ISqlExpression
datepart Sql.DateParts
Returns
- ISqlExpression
TranslateDateTimeOffsetTruncationToDate(ITranslationContext, ISqlExpression, TranslationFlags)
protected virtual ISqlExpression? TranslateDateTimeOffsetTruncationToDate(ITranslationContext translationContext, ISqlExpression dateExpression, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dateExpression ISqlExpression
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateDateTimeOffsetTruncationToTime(ITranslationContext, ISqlExpression, TranslationFlags)
protected virtual ISqlExpression? TranslateDateTimeOffsetTruncationToTime(ITranslationContext translationContext, ISqlExpression dateExpression, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dateExpression ISqlExpression
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateDateTimeTruncationToDate(ITranslationContext, ISqlExpression, TranslationFlags)
protected virtual ISqlExpression? TranslateDateTimeTruncationToDate(ITranslationContext translationContext, ISqlExpression dateExpression, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dateExpression ISqlExpression
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateDateTimeTruncationToTime(ITranslationContext, ISqlExpression, TranslationFlags)
protected virtual ISqlExpression? TranslateDateTimeTruncationToTime(ITranslationContext translationContext, ISqlExpression dateExpression, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dateExpression ISqlExpression
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateMakeDateOnly(ITranslationContext, DbDataType, ISqlExpression, ISqlExpression, ISqlExpression)
protected virtual ISqlExpression? TranslateMakeDateOnly(ITranslationContext translationContext, DbDataType resulType, ISqlExpression year, ISqlExpression month, ISqlExpression day)
Parameters
translationContext ITranslationContext
resulType DbDataType
year ISqlExpression
month ISqlExpression
day ISqlExpression
Returns
- ISqlExpression
TranslateMakeDateTime(ITranslationContext, DbDataType, ISqlExpression, ISqlExpression, ISqlExpression, ISqlExpression?, ISqlExpression?, ISqlExpression?, ISqlExpression?)
protected virtual 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 virtual ISqlExpression? TranslateNow(ITranslationContext translationContext, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateServerNow(ITranslationContext, TranslationFlags)
protected virtual ISqlExpression? TranslateServerNow(ITranslationContext translationContext, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateUtcNow(ITranslationContext, TranslationFlags)
protected virtual ISqlExpression? TranslateUtcNow(ITranslationContext translationContext, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateZonedNow(ITranslationContext, DbDataType, TranslationFlags)
protected virtual ISqlExpression? TranslateZonedNow(ITranslationContext translationContext, DbDataType dbDataType, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dbDataType DbDataType
translationFlags TranslationFlags
Returns
- ISqlExpression
TranslateZonedUtcNow(ITranslationContext, DbDataType, TranslationFlags)
protected virtual ISqlExpression? TranslateZonedUtcNow(ITranslationContext translationContext, DbDataType dbDataType, TranslationFlags translationFlags)
Parameters
translationContext ITranslationContext
dbDataType DbDataType
translationFlags TranslationFlags
Returns
- ISqlExpression