public virtual void DateTimeTruncateTest() { var select = SqlDml.Select(); select.Columns.Add( SqlDml.DateTimeTruncate(new DateTime(2005, 1, 1, 1, 1, 1, 1))); select.Columns.Add(new DateTime(2005, 1, 1)); CompareColumnEquality(select); }
protected SqlExpression DateTimeOffsetTimeOfDay(SqlExpression timestamp) { return(DateTimeOffsetSubstract(timestamp, SqlDml.DateTimeTruncate(timestamp))); }
public static SqlExpression DateTimeDate(SqlExpression _this) { return(SqlDml.DateTimeTruncate(_this)); }
public static SqlExpression DateTimeTimeOfDay(SqlExpression _this) { return(SqlDml.DateTimeMinusDateTime(_this, SqlDml.DateTimeTruncate(_this))); }
public virtual void DateTimeTruncateTest() { CheckEquality( SqlDml.DateTimeTruncate(DefaultDateTime), DefaultDateTime.Date); }