truncatedTo method

MssqlExpression truncatedTo(
  1. MssqlTemporalGrain grain
)

This value snapped back to the start of its grain.

The same descriptor goes into the SELECT list and the GROUP BY, and compiles to identical SQL in both, which is what ties the two together.

Implementation

MssqlExpression truncatedTo(MssqlTemporalGrain grain) =>
    MssqlDateTruncate(this, grain);