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