1 override of From
System.Data.Linq (1)
SqlClient\SqlTypeSystemProvider.cs (1)
1399
internal override ProviderType
From
(Type type)
65 references to From
System.Data.Linq (65)
SqlClient\Common\SqlFactory.cs (20)
57
return UnaryConvert(clrType, typeProvider.
From
(clrType), expr, expr.SourceExpression);
84
return UnaryConvert(typeof(DateTime), typeProvider.
From
(typeof(DateTime)), expr, expr.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);
313
return new SqlDiscriminatedType(typeProvider.
From
(typeof(Type)), discriminator, targetType, discriminator.SourceExpression);
325
return new SqlRowNumber(typeof(long), typeProvider.
From
(typeof(long)), orderBy, sourceExpression);
338
sqlType = typeProvider.
From
(typeof(int));
342
sqlType = typeProvider.
From
(typeof(long));
346
sqlType = typeProvider.
From
(typeof(int));
392
sqlType = typeProvider.
From
(clrType);
419
return new SqlBetween(typeof(bool), typeProvider.
From
(typeof(bool)), expr, start, end, source);
423
return new SqlIn(typeof(bool), typeProvider.
From
(typeof(bool)), expr, values, source);
427
SqlLike like = new SqlLike(typeof(bool), typeProvider.
From
(typeof(bool)), expr, pattern, escape, source);
489
ProviderType sqlType = (value == null) ? this.typeProvider.
From
(clrType) : this.typeProvider.From(value);
513
return new SqlTypeCase(clrType, typeProvider.
From
(clrType), rowType, discriminator, whens, sourceExpression);
517
SqlNew tb = new SqlNew(type, typeProvider.
From
(type.Type), cons, args, argMembers, bindings, sourceExpression);
553
sqlType = typeProvider.
From
(typeof(bool));
578
return typeProvider.
From
(clrType);
589
return this.typeProvider.
From
(member.Type);
603
this.Value(typeof(int?), this.typeProvider.
From
(typeof(int)), 1, false, source))
SqlClient\Query\MethodCallConverter.cs (1)
303
SqlDiscriminatorOf discriminatorOf = new SqlDiscriminatorOf(mc.Object, discriminatorType, this.sql.TypeProvider.
From
(discriminatorType), mc.SourceExpression);
SqlClient\Query\QueryConverter.cs (29)
359
var sca = new SqlClientArray(typeof(object[]), this.typeProvider.
From
(typeof(object[])), args, this.dominatingExpression);
389
SqlClientParameter cp = new SqlClientParameter(p.Type, this.typeProvider.
From
(p.Type), accessor, this.dominatingExpression);
436
sql.Value(typeof(int?), this.typeProvider.
From
(typeof(int)), 1, false, this.dominatingExpression)
552
sql.Value(typeof(int?), this.typeProvider.
From
(typeof(int)), 1, false, this.dominatingExpression)
578
select.Selection = new SqlUnary(SqlNodeType.Treat, ofType, typeProvider.
From
(ofType), aref, this.dominatingExpression);
620
result = sql.Unary(SqlNodeType.IsNotNull, new SqlUnary(SqlNodeType.Treat, ofType, typeProvider.
From
(ofType), expr, this.dominatingExpression), this.dominatingExpression);
640
return new SqlUnary(SqlNodeType.Treat, a.Type, typeProvider.
From
(a.Type), expr, a);
645
return new SqlUnary(SqlNodeType.Treat, a.Type, typeProvider.
From
(a.Type), ms, a);
670
b.Type, sql.TypeProvider.
From
(b.Type),
713
type, sql.TypeProvider.
From
(type),
722
return sql.UnaryConvert(type, typeProvider.
From
(type), expr, expr.SourceExpression);
734
return new SqlUnary(SqlNodeType.Treat, type, typeProvider.
From
(type), expr, expr.SourceExpression);
758
ProviderType sfromType = typeProvider.
From
(nnFromType);
759
ProviderType stoType = typeProvider.
From
(nnToType);
1253
SqlUserColumn col = new SqlUserColumn(elementType, typeProvider.
From
(elementType), suq, "", false, this.dominatingExpression);
1488
if (!this.typeProvider.
From
(expression.Body.Type).IsOrderable) {
1511
if (!this.typeProvider.
From
(expression.Body.Type).IsOrderable) {
1593
SqlExpression keyGroup = new SqlGrouping(elementType, this.typeProvider.
From
(elementType), keyExpr, ss, this.dominatingExpression);
1615
SqlExpression resultExpr = new SqlGrouping(elementType, this.typeProvider.
From
(elementType), keyExpr, ss, this.dominatingExpression);
1772
ProviderType sqlType = this.typeProvider.
From
(clrType);
2006
: this.typeProvider.
From
(mc.Method.ReturnType);
2383
SqlNodeType subType = (this.typeProvider.
From
(select.Selection.ClrType).CanBeColumn) ? SqlNodeType.ScalarSubSelect : SqlNodeType.Element;
2527
return new SqlVariable(typeof(decimal), typeProvider.
From
(typeof(decimal)), "SCOPE_IDENTITY()", this.dominatingExpression);
2530
return new SqlVariable(typeof(decimal), typeProvider.
From
(typeof(decimal)), "@@IDENTITY", this.dominatingExpression);
2549
return new SqlVariable(typeof(decimal), typeProvider.
From
(typeof(decimal)), "@@ROWCOUNT", this.dominatingExpression);
2552
return new SqlVariable(typeof(decimal), typeProvider.
From
(typeof(decimal)), "@ROWCOUNT", this.dominatingExpression);
2601
new SqlValue(mdm.Type, this.typeProvider.
From
(mdm.Type), mmi.CurrentValue, true, source),
2687
return new SqlClientArray(arr.Type, this.typeProvider.
From
(arr.Type), exprs, this.dominatingExpression);
2705
return new SqlClientArray(list.Type, this.typeProvider.
From
(list.Type), exprs, this.dominatingExpression);
SqlClient\Query\SqlBinder.cs (1)
650
return sql.Value(typeof(bool), this.typeProvider.
From
(typeof(int)), (val.Value == null) == (uo.NodeType == SqlNodeType.IsNull), val.IsClientSpecified, uo.SourceExpression);
SqlClient\Query\SqlBooleanizer.cs (1)
41
valueExpression.ClrType, sql.TypeProvider.
From
(typeof(bool)),
SqlClient\Query\SqlMethodCallConverter.cs (2)
1261
if (sql.TypeProvider.
From
(targetType) != expr.SqlType ||
1267
if (sql.TypeProvider.
From
(targetType) != expr.SqlType) {
SqlClient\Query\SqlParameterizer.cs (2)
79
new SqlParameter(typeof(int), typeProvider.
From
(typeof(int)), "@ROWCOUNT", block.SourceExpression)
215
SqlParameter p = new SqlParameter(typeof(int?), this.parameterizer.typeProvider.
From
(typeof(int)), "@RETURN_VALUE", spc.SourceExpression);
SqlClient\Query\SqlReorderer.cs (2)
115
col = new SqlColumn(mm.MemberAccessor.Type, typeProvider.
From
(mm.MemberAccessor.Type), name, mm, null, sourceExpression);
248
sql.Value(typeof(int), this.typeProvider.
From
(typeof(int)), 1, false, rowNumber.SourceExpression)
SqlClient\Query\SqlTypeConverter.cs (3)
65
bool result = oldSqlType.IsSameTypeFamily(sql.TypeProvider.
From
(typeof(string)))
66
&& newSqlType.IsSameTypeFamily(sql.TypeProvider.
From
(typeof(string)));
101
return sql.FunctionCall(newClrType, sql.TypeProvider.
From
(typeof(int)), "UNICODE", new SqlExpression[] { uo.Operand }, uo.SourceExpression);
SqlClient\Query\Translator.cs (2)
126
return new SqlLink(new object(), otherType, member.Type, typeProvider.
From
(member.Type), item, member, exprs, null, source);
137
return new SqlLink(new object(), thisType, member.Type, typeProvider.
From
(member.Type), item, member, exprs, expansion, source);
SqlClient\SqlProvider.cs (2)
1341
ProviderType pt = this.typeProvider.
From
(query.Type);
1671
SqlUserColumn col = new SqlUserColumn(rowType.Type, typeProvider.
From
(rowType.Type), suq, "", false, suq.SourceExpression);