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