5 instantiations of SqlValue
System.Data.Linq (5)
SqlClient\Common\SqlFactory.cs (3)
293return new SqlValue(clrType, sqlType, value, isClientSpecified, sourceExpression); 305return new SqlValue(typeof(Type), this.typeProvider.From(typeof(Type)), typeOf.Type, false, sourceExpression); 308SqlValue match = new SqlValue(type, this.typeProvider.From(type), typeOf.InheritanceCode, true, sourceExpression);
SqlClient\Query\MethodCallConverter.cs (1)
165SqlValue emptyStr = new SqlValue(strValue.ClrType, strValue.SqlType, String.Empty, strValue.IsClientSpecified, strValue.SourceExpression);
SqlClient\Query\QueryConverter.cs (1)
2601new SqlValue(mdm.Type, this.typeProvider.From(mdm.Type), mmi.CurrentValue, true, source),
118 references to SqlValue
System.Data.Linq (118)
SqlClient\Common\SqlFactory.cs (1)
308SqlValue match = new SqlValue(type, this.typeProvider.From(type), typeOf.InheritanceCode, true, sourceExpression);
SqlClient\Common\SqlVisitor.cs (3)
143result = this.VisitValue((SqlValue)node); 263return ((SqlValue)expr).Value; 400internal virtual SqlExpression VisitValue(SqlValue value) {
SqlClient\Query\MethodCallConverter.cs (3)
163SqlValue strValue = call.Arguments[1] as SqlValue; 165SqlValue emptyStr = new SqlValue(strValue.ClrType, strValue.SqlType, String.Empty, strValue.IsClientSpecified, strValue.SourceExpression);
SqlClient\Query\QueryConverter.cs (19)
282SqlValue sv = (SqlValue)node; 338SqlValue value = (SqlValue)expr; 668SqlValue vIndex = (SqlValue)index; 707else if (expr.NodeType == SqlNodeType.Value && ((SqlValue)expr).Value == null) { 932SqlValue constTakeCount = (SqlValue)takeExp; 944SqlValue constSkipCount = (SqlValue)skipExp; 1046SqlValue constSkipCount = (SqlValue)skipExp; 1784IEnumerable values = ((SqlValue)seqNode).Value as IEnumerable; 1847SqlValue value = expr as SqlValue; 1950return ((SqlValue)exp).Value; 2673var v = (SqlValue)r;
SqlClient\Query\SqlBinder.cs (30)
204SqlValue vLeft = bo.Left as SqlValue; 205SqlValue vRight = bo.Right as SqlValue; 247SqlValue vLeft = bo.Left as SqlValue; 248SqlValue vRight = bo.Right as SqlValue; 268SqlValue vLeft = bo.Left as SqlValue; 269SqlValue vRight = bo.Right as SqlValue; 385SqlValue val = (SqlValue)typeExpression; 435values.Add(sql.Value(discriminator.GetType(), when.Match.SqlType, ((SqlValue)when.Match).Value, true, tc.SourceExpression)); 451SqlValue litElse = c.Else as SqlValue; 452SqlValue litWhen = c.Whens[0].Value as SqlValue; 466SqlValue sqlValue = sqlExpr as SqlValue; 571SqlValue val = (SqlValue)uo.Operand; 590SqlValue val = (SqlValue)uo.Operand; 649SqlValue val = (SqlValue)uo.Operand; 914SqlValue val = (SqlValue)exp; 1181if (select.Where != null && select.Where.NodeType == SqlNodeType.Value && (bool)((SqlValue)select.Where).Value) {
SqlClient\Query\SqlBooleanizer.cs (2)
23SqlValue value = (SqlValue)bin.Right;
SqlClient\Query\SqlCaseSimplifier.cs (2)
184SqlValue lit = (SqlValue)newWhens[i].Value; // Must be SqlValue because of allValuesLiteral.
SqlClient\Query\SqlComparer.cs (2)
126return Object.Equals(((SqlValue)node1).Value, ((SqlValue)node2).Value);
SqlClient\Query\SqlDeflator.cs (2)
66private SqlValue GetLiteralValue(SqlExpression expr) { 70return expr as SqlValue;
SqlClient\Query\SqlDuplicator.cs (1)
178internal override SqlExpression VisitValue(SqlValue value) {
SqlClient\Query\SqlExpander.cs (4)
275SqlValue val0 = (SqlValue)exprs[0]; 277SqlValue val = (SqlValue)exprs[i];
SqlClient\Query\SqlExpressionNullability.cs (1)
48return ((SqlValue)expr).Value == null;
SqlClient\Query\SqlFormatter.cs (1)
437internal override SqlExpression VisitValue(SqlValue value) {
SqlClient\Query\SqlMethodCallConverter.cs (24)
1510string unescapedText = (string)((SqlValue)pattern).Value; 1544string unescapedText = (string)((SqlValue)pattern).Value; 1578string unescapedText = (string)((SqlValue)pattern).Value; 1607if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).Value == null) { 1622if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).Value == null) { 1643if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).Value == null) { 1681if (exprPart is SqlValue && ((SqlValue)exprPart).Value == null) { 1714if (part is SqlValue && ((SqlValue)part).Value == null) { 1750if (part is SqlValue && ((SqlValue)part).Value == null) { 1781if (mc.Arguments[1] is SqlValue && ((SqlValue)mc.Arguments[1]).Value == null) { 1896if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).Value == null) { 1899if (mc.Arguments[1] is SqlValue && ((SqlValue)mc.Arguments[1]).Value == null) { 1964if (mc.Arguments[0] is SqlValue && ((SqlValue)mc.Arguments[0]).Value == null) { 2477string unescapedText = (string)((SqlValue)pattern).Value;
SqlClient\Query\SqlParameterizer.cs (3)
111private SqlParameter InsertLookup(SqlValue cp) { 190return this.InsertLookup((SqlValue)result); 280internal override SqlExpression VisitValue(SqlValue value) {
SqlClient\Query\SqlRetyper.cs (5)
228SqlValue val = (SqlValue)arg2; 290arg2 = CoerceValueForExpression((SqlValue)arg2, arg1); 293arg1 = CoerceValueForExpression((SqlValue)arg1, arg2); 312private SqlExpression CoerceValueForExpression(SqlValue value, SqlExpression expression)
SqlClient\Query\SqlSupersetValidator.cs (1)
55internal override SqlExpression VisitValue(SqlValue value) {
SqlClient\Query\SqlTopReducer.cs (2)
30SqlValue val = (SqlValue)select.Top;
SqlClient\Query\TypeSource.cs (2)
82SqlValue val = (SqlValue)node;
SqlClient\Reader\ObjectReaderCompiler.cs (6)
520return Object.Equals(((SqlValue)node1).Value, ((SqlValue)node2).Value); 740return this.GenerateValue((SqlValue)node); 804private Type GenerateValue(SqlValue value) { 1953SqlValue vMatch = when.Match as SqlValue;
SqlClient\SqlTypeSystemProvider.cs (4)
1239SqlValue val = (SqlValue)functionCall.Arguments[2]; 1269SqlValue delLength = functionCall.Arguments[2] as SqlValue;