12 references to CastTo
System.Data.Entity (12)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
697return this.VisitTypeUnary(expression, expression.ResultType, CqtBuilder.CastTo);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
1388args[idx] = args[idx].CastTo(memberModelTypeUsage); 5058return exprToCast.CastTo(TypeHelpers.GetReadOnlyType(typeToCastTo));
System\Data\Mapping\FunctionImportMappingComposable.cs (2)
419accessorExpr = accessorExpr.CastTo(edmProperty.TypeUsage); 459return propertyAccess.CastTo(functionImportReturnType.TypeUsage);
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (1)
77cqt = cqt.CastTo(outputMemberTypeUsage);
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
773return source.CastTo(toType); 934return cqt.CastTo(toType);
System\Data\Objects\ELinq\MethodCallTranslator.cs (3)
1802DbProjectExpression operandCastProjection = operandCastBinding.Project(operandCastBinding.Variable.CastTo(returnType)); 1814operand = operand.CastTo(returnType); 1991constantExpression = constantExpression.CastTo(returnType);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
1038return VisitChild(n, 0).CastTo(op.Type);