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