File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ public enum SqlFunctionType
7474 TimeToString ,
7575 TimeToDateTime ,
7676 TimeToDateTimeOffset ,
77+ TimeToNanoseconds ,
7778#endif
7879
7980 DateTimeConstruct ,
Original file line number Diff line number Diff line change @@ -755,6 +755,12 @@ public static SqlFunctionCall TimeToDateTime(SqlExpression expression)
755755 return new SqlFunctionCall ( SqlFunctionType . TimeToDateTime , expression ) ;
756756 }
757757
758+ public static SqlExpression TimeToNanoseconds ( SqlExpression source )
759+ {
760+ ArgumentNullException . ThrowIfNull ( source , nameof ( source ) ) ;
761+ return new SqlFunctionCall ( SqlFunctionType . TimeToNanoseconds , source ) ;
762+ }
763+
758764 public static SqlFunctionCall TimeToDateTimeOffset ( SqlExpression expression )
759765 {
760766 ArgumentValidator . EnsureArgumentNotNull ( expression , "expression" ) ;
@@ -783,13 +789,13 @@ public static SqlFunctionCall IntervalConstruct(SqlExpression nanoseconds)
783789 public static SqlFunctionCall IntervalToMilliseconds ( SqlExpression source )
784790 {
785791 ArgumentValidator . EnsureArgumentNotNull ( source , "source" ) ;
786- return new SqlFunctionCall ( SqlFunctionType . IntervalToMilliseconds , source ) ;
792+ return new SqlFunctionCall ( SqlFunctionType . IntervalToMilliseconds , source ) ;
787793 }
788794
789795 public static SqlFunctionCall IntervalToNanoseconds ( SqlExpression source )
790796 {
791797 ArgumentValidator . EnsureArgumentNotNull ( source , "source" ) ;
792- return new SqlFunctionCall ( SqlFunctionType . IntervalToNanoseconds , source ) ;
798+ return new SqlFunctionCall ( SqlFunctionType . IntervalToNanoseconds , source ) ;
793799 }
794800
795801 public static SqlFunctionCall IntervalAbs ( SqlExpression source )
You can’t perform that action at this time.
0 commit comments