Пример #1
0
 private static SqlExpression DateTimeConstruct(
     SqlExpression year,
     SqlExpression month,
     SqlExpression day,
     SqlExpression hour,
     SqlExpression minute,
     SqlExpression second,
     SqlExpression millisecond)
 {
     return(SqlDml.DateTimePlusInterval(
                SqlDml.DateTimeConstruct(year, month, day),
                TimeSpanCompilers.GenericIntervalConstruct(0, hour, minute, second, millisecond)));
 }
Пример #2
0
 public static SqlExpression DateTimeAddMilliseconds(SqlExpression _this,
                                                     [Type(typeof(double))] SqlExpression value)
 {
     return(SqlDml.DateTimePlusInterval(_this, TimeSpanCompilers.TimeSpanFromMilliseconds(value)));
 }
 public static SqlExpression DateTimeOffsetAddHours(SqlExpression _this,
                                                    [Type(typeof(double))] SqlExpression value)
 {
     return(SqlDml.DateTimeOffsetPlusInterval(_this, TimeSpanCompilers.TimeSpanFromHours(value)));
 }
 private static SqlExpression OffsetInMinutes(SqlExpression offset)
 {
     return(TimeSpanCompilers.TimeSpanTotalMinutes(offset));
 }