1 write to sql
System.Data.Linq (1)
SqlClient\Query\SqlTypeConverter.cs (1)
17
this.
sql
= sql;
13 references to sql
System.Data.Linq (13)
SqlClient\Query\SqlTypeConverter.cs (13)
65
bool result = oldSqlType.IsSameTypeFamily(
sql
.TypeProvider.From(typeof(string)))
66
&& newSqlType.IsSameTypeFamily(
sql
.TypeProvider.From(typeof(string)));
88
return
sql
.FunctionCall(uo.ClrType, "NCHAR", new SqlExpression[] { uo.Operand }, uo.SourceExpression);
94
uo.SetSqlType(
sql
.TypeProvider.From(uo.ClrType, oldSqlType.HasSizeOrIsLarge ? oldSqlType.Size : (int?)null));
101
return
sql
.FunctionCall(newClrType,
sql
.TypeProvider.From(typeof(int)), "UNICODE", new SqlExpression[] { uo.Operand }, uo.SourceExpression);
112
uo.SetSqlType(
sql
.TypeProvider.From(uo.ClrType, oldSqlType.HasSizeOrIsLarge ? oldSqlType.Size : (int?)null));
124
SqlExpression nvarchar =
sql
.FunctionCall(
126
new SqlExpression[] {
sql
.ValueFromObject(30, false, expr.SourceExpression) },
129
return
sql
.FunctionCall(
131
new SqlExpression[] { nvarchar, expr,
sql
.ValueFromObject(2, false, expr.SourceExpression) },
139
new SqlWhen[] { new SqlWhen(expr,
sql
.ValueFromObject(true.ToString(), false, expr.SourceExpression)) },
140
sql
.ValueFromObject(false.ToString(), false, expr.SourceExpression),