SqlClient\Query\SqlMethodCallConverter.cs (37)
798sql.ConvertToInt(sql.ConvertToBigint(sql.Divide(sql.ConvertTimeToDouble(sox.Args[1]), TimeSpan.TicksPerMinute)))
852sql.ConvertToInt(sql.ConvertToBigint(sql.Divide(sql.ConvertTimeToDouble(sox.Args[timeSpanIndex]), TimeSpan.TicksPerMinute)))
1070sql.Divide(ns, 100),
1129sql.Divide(ns, 100),
1330sql.Divide(intNSec, 100),
1351sql.Divide(ns, 100),
2023return sql.Divide(sql.Add(expX, expMinusX), 2);
2109SqlExpression specialCase = sql.Multiply(sql.FunctionCall(type, "round", new SqlExpression[] { sql.Divide(x, 2), i }, source), 2);
2129return sql.Divide(sql.Subtract(exp, expMinus), 2);
2243return this.sql.Divide(
2261this.sql.Divide(sql.ConvertToDouble(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 1000000)
2264return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerMillisecond);
2271this.sql.Divide(sql.ConvertToDouble(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 1000000000)
2274return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerSecond);
2280this.sql.Divide(sql.ConvertToDouble(sql.DATEPART("SECOND", exp)), 60),
2281this.sql.Divide(sql.ConvertToDouble(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 60000000000)
2284return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerMinute);
2289this.sql.Divide(sql.ConvertToDouble(sql.DATEPART("MINUTE", exp)), 60),
2290this.sql.Divide(sql.ConvertToDouble(sql.DATEPART("SECOND", exp)), 3600),
2291this.sql.Divide(sql.ConvertToDouble(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 3600000000000)
2294return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerHour);
2297return this.sql.Divide(
2300this.sql.Divide(sql.ConvertToDouble(sql.DATEPART("MINUTE", exp)), 60),
2301this.sql.Divide(sql.ConvertToDouble(sql.DATEPART("SECOND", exp)), 3600),
2302this.sql.Divide(sql.ConvertToDouble(sql.ConvertToBigint(sql.DATEPART("NANOSECOND", exp))), 3600000000000)),
2306return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.TicksPerDay);
2311return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerMillisecond)), 1000));
2316return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerSecond)), 60));
2321return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerMinute)), 60));
2326return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.TicksPerHour)), 24));
2331return sql.ConvertToInt(sql.Divide(exp, TimeSpan.TicksPerDay));
2345SqlExpression daysAdded = sql.DATEADD("day", sql.Divide(sqlTicks, TimeSpan.TicksPerDay), sqlDate, source, asNullable);
2346return sql.DATEADD("ms", sql.Mod(sql.Divide(sqlTicks, TimeSpan.TicksPerMillisecond), 86400000), daysAdded, source, asNullable);
2356SqlExpression daysAdded = sql.DATEADD("day", sql.Divide(msBigint, 86400000), sqlDate, source, asNullable);
2366SqlExpression daysAdded = sql.DATETIMEOFFSETADD("day", sql.Divide(sqlTicks, TimeSpan.TicksPerDay), sqlDate, source, asNullable);
2367return sql.DATETIMEOFFSETADD("ms", sql.Mod(sql.Divide(sqlTicks, TimeSpan.TicksPerMillisecond), 86400000), daysAdded, source, asNullable);
2377SqlExpression daysAdded = sql.DATETIMEOFFSETADD("day", sql.Divide(msBigint, 86400000), sqlDate, source, asNullable);