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