24 references to ConvertTo
System.Data.Linq (24)
SqlClient\Common\SqlFactory.cs (5)
61
return
ConvertTo
(typeof(long), expr);
65
return
ConvertTo
(typeof(int), expr);
69
return
ConvertTo
(typeof(double), expr);
80
return
ConvertTo
(typeof(bool), expr);
261
return
ConvertTo
(typeof(DateTimeOffset), result);
SqlClient\Query\MethodCallConverter.cs (2)
240
sum = sql.
ConvertTo
(typeof(string), exprs[0]);
247
sum = sql.Concat(sum, sql.
ConvertTo
(typeof(string), exprs[i]));
SqlClient\Query\SqlMethodCallConverter.cs (16)
862
return sql.
ConvertTo
(typeof(TimeSpan), sox.Args[0]);
872
return sql.
ConvertTo
(typeof(TimeSpan), sql.Add(TicksFromHours, TicksFromMinutes, TicksFromSeconds));
886
return sql.
ConvertTo
(typeof(TimeSpan), totalTicks);
892
return sql.
ConvertTo
(typeof(TimeSpan), sql.Add(totalTicks, ticksFromMs));
909
returnValue = sql.
ConvertTo
(mc.ClrType, mc.Arguments[0]);
959
return sql.
ConvertTo
(typeof(string), expr);
1030
return sql.Like(mc.Arguments[0], mc.Arguments[1], sql.
ConvertTo
(typeof(string), mc.Arguments[2]), source);
1264
returnValue = sql.
ConvertTo
(targetType, expr);
1269
returnValue = sql.
ConvertTo
(targetType, expr);
1306
return sql.
ConvertTo
(resultType, result);
1340
return sql.
ConvertTo
(resultType, result);
1466
sum = sql.
ConvertTo
(typeof(string), exprs[0]);
1473
sum = sql.Concat(sum, sql.
ConvertTo
(typeof(string), exprs[i]));
2223
return sql.
ConvertTo
(typeof(TimeSpan), sql.Add(ticksFromHour, ticksFromMinutes, ticksFromSeconds, ticksFromMs));
2231
return sql.
ConvertTo
(typeof(DayOfWeek),
2450
return sql.
ConvertTo
(targetType, expr);
SqlClient\Query\SqlMethodTransformer.cs (1)
45
result = sql.
ConvertTo
(resultFunctionCall.ClrType, resultFunctionCall);