3 references to IsCastAllowed
System.Data.Entity (3)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
1009
if (!TypeSemantics.
IsCastAllowed
(argument.ResultType, toType))
System\Data\Common\CommandTrees\OperatorExpressions.cs (1)
239
Debug.Assert(TypeSemantics.
IsCastAllowed
(argument.ResultType, type), "DbCastExpression represents an invalid cast");
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
5053
if (!TypeSemantics.
IsCastAllowed
(exprToCast.ResultType, typeToCastTo))