87 references to Value
System.Data.Linq (87)
SqlClient\Common\SqlVisitor.cs (1)
263return ((SqlValue)expr).Value;
SqlClient\Query\MethodCallConverter.cs (1)
164if (strValue != null && strValue.Value == null) {
SqlClient\Query\QueryConverter.cs (14)
284ITable t = sv.Value as ITable; 289IQueryable query = sv.Value as IQueryable; 339Delegate d = value.Value as Delegate; 673Expression.ArrayIndex(cpArray.Accessor.Body, Expression.Constant(vIndex.Value, vIndex.ClrType)), 707else if (expr.NodeType == SqlNodeType.Value && ((SqlValue)expr).Value == null) { 933if (typeof(int).IsAssignableFrom(constTakeCount.Value.GetType()) && ((int)constTakeCount.Value) < 0) { 945if (typeof(int).IsAssignableFrom(constSkipCount.Value.GetType()) && ((int)constSkipCount.Value) < 0) { 1047if (typeof(int).IsAssignableFrom(constSkipCount.Value.GetType()) && ((int)constSkipCount.Value) < 0) { 1784IEnumerable values = ((SqlValue)seqNode).Value as IEnumerable; 1849DataContext dc = value.Value as DataContext; 1950return ((SqlValue)exp).Value;
SqlClient\Query\SqlBinder.cs (32)
206bool leftIsBool = vLeft!=null && vLeft.Value is bool; 207bool rightIsBool = vRight!=null && vRight.Value is bool; 213bool value = (bool)vLeft.Value; 222bool value = (bool)vRight.Value; 231bool leftValue = (bool)vLeft.Value; 232bool rightValue = (bool)vRight.Value; 250if (vLeft.Value != null && (bool)vLeft.Value) { 256if (vRight.Value != null && (bool)vRight.Value) { 262return sql.ValueFromObject((bool)(vLeft.Value ?? false) && (bool)(vRight.Value ?? false), false, bo.SourceExpression); 271if (vLeft.Value != null && !(bool)vLeft.Value) { 277if (vRight.Value != null && !(bool)vRight.Value) { 283return sql.ValueFromObject((bool)(vLeft.Value ?? false) || (bool)(vRight.Value ?? false), false, bo.SourceExpression); 386MetaType mt = this.model.GetMetaType((Type)val.Value); 435values.Add(sql.Value(discriminator.GetType(), when.Match.SqlType, ((SqlValue)when.Match).Value, true, tc.SourceExpression)); 454if (litElse != null && litElse.Value != null && !(bool)litElse.Value) { 457else if (litWhen != null && litWhen.Value != null && (bool)litWhen.Value) { 471return sqlValue.Value == null && !sqlValue.IsClientSpecified; 572return sql.Value(typeof(bool), val.SqlType, !(bool)val.Value, val.IsClientSpecified, val.SourceExpression); 591return sql.Value(uo.ClrType, uo.SqlType, DBConvert.ChangeType(val.Value, uo.ClrType), val.IsClientSpecified, val.SourceExpression); 650return sql.Value(typeof(bool), this.typeProvider.From(typeof(int)), (val.Value == null) == (uo.NodeType == SqlNodeType.IsNull), val.IsClientSpecified, uo.SourceExpression); 915if (val.Value == null) { 920return sql.Value(m.ClrType, m.SqlType, p.GetValue(val.Value, null), val.IsClientSpecified, m.SourceExpression); 924return sql.Value(m.ClrType, m.SqlType, f.GetValue(val.Value), val.IsClientSpecified, m.SourceExpression); 1181if (select.Where != null && select.Where.NodeType == SqlNodeType.Value && (bool)((SqlValue)select.Where).Value) {
SqlClient\Query\SqlBooleanizer.cs (3)
24if (value.Value != null && value.Value.GetType() == typeof(bool) && (bool)value.Value == false) {
SqlClient\Query\SqlCaseSimplifier.cs (1)
185bool value = (bool)lit.Value; // Must be bool because of caseType==typeof(bool).
SqlClient\Query\SqlComparer.cs (2)
126return Object.Equals(((SqlValue)node1).Value, ((SqlValue)node2).Value);
SqlClient\Query\SqlExpander.cs (2)
278if (!object.Equals(val.Value, val0.Value))
SqlClient\Query\SqlExpressionNullability.cs (1)
48return ((SqlValue)expr).Value == null;
SqlClient\Query\SqlFormatter.cs (1)
442this.FormatValue(value.Value);
SqlClient\Query\SqlMethodCallConverter.cs (14)
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 (2)
117pi = new SqlParameterInfo(p, cp.Value); 121pi = new SqlParameterInfo(p, ((DateTime)cp.Value).TimeOfDay);
SqlClient\Query\SqlRetyper.cs (2)
231DBConvert.ChangeType(val.Value, arg1.ClrType), 314object clrValue = value.Value;
SqlClient\Query\SqlSupersetValidator.cs (1)
60&& value.Value != null) {
SqlClient\Query\SqlTopReducer.cs (1)
33select.Top = sql.Value(val.ClrType, val.SqlType, val.Value, false, val.SourceExpression);
SqlClient\Query\TypeSource.cs (2)
83if (val.Value != null) { 87sourceType = val.Value.GetType();
SqlClient\Reader\ObjectReaderCompiler.cs (4)
520return Object.Equals(((SqlValue)node1).Value, ((SqlValue)node2).Value); 805return this.GenerateConstant(value.ClrType, value.Value); 1955this.GenerateConstant(locDiscriminator.LocalType, vMatch.Value);
SqlClient\SqlTypeSystemProvider.cs (3)
1241if (val.Value is int) { 1247return Create(arg0.SqlDbType, (int)val.Value); 1270if (delLength != null && (int)delLength.Value == 0)