16 references to ConvertToDouble
System.Data.Linq (16)
SqlClient\Common\SqlFactory.cs (1)
76
return IsSqlTimeType(exp) ?
ConvertToDouble
(exp) : exp;
SqlClient\Query\SqlMethodCallConverter.cs (15)
2261
this.sql.Divide(sql.
ConvertToDouble
(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 1000000)
2264
return sql.Divide(sql.
ConvertToDouble
(exp), TimeSpan.TicksPerMillisecond);
2271
this.sql.Divide(sql.
ConvertToDouble
(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 1000000000)
2274
return sql.Divide(sql.
ConvertToDouble
(exp), TimeSpan.TicksPerSecond);
2280
this.sql.Divide(sql.
ConvertToDouble
(sql.DATEPART("SECOND", exp)), 60),
2281
this.sql.Divide(sql.
ConvertToDouble
(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 60000000000)
2284
return sql.Divide(sql.
ConvertToDouble
(exp), TimeSpan.TicksPerMinute);
2289
this.sql.Divide(sql.
ConvertToDouble
(sql.DATEPART("MINUTE", exp)), 60),
2290
this.sql.Divide(sql.
ConvertToDouble
(sql.DATEPART("SECOND", exp)), 3600),
2291
this.sql.Divide(sql.
ConvertToDouble
(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 3600000000000)
2294
return sql.Divide(sql.
ConvertToDouble
(exp), TimeSpan.TicksPerHour);
2300
this.sql.Divide(sql.
ConvertToDouble
(sql.DATEPART("MINUTE", exp)), 60),
2301
this.sql.Divide(sql.
ConvertToDouble
(sql.DATEPART("SECOND", exp)), 3600),
2302
this.sql.Divide(sql.
ConvertToDouble
(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 3600000000000)),
2306
return sql.Divide(sql.
ConvertToDouble
(exp), TimeSpan.TicksPerDay);