internal SqlExtract(SqlIntervalPart intervalPart, SqlExpression operand) : base(SqlNodeType.Extract) { DateTimePart = SqlDateTimePart.Nothing; DateTimeOffsetPart = SqlDateTimeOffsetPart.Nothing; IntervalPart = intervalPart; Operand = operand; }
public override string Translate(SqlIntervalPart part) { switch (part) { case SqlIntervalPart.Millisecond: return("SECOND"); default: return(base.Translate(part)); } }
public override string Translate(SqlIntervalPart intervalPart) { throw SqlHelper.NotSupported(intervalPart.ToString()); }