5 references to IsValidPolymorphicCast
System.Data.Entity (5)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
1027
if (!TypeSemantics.
IsValidPolymorphicCast
(argument.ResultType, asType))
1053
!TypeSemantics.
IsValidPolymorphicCast
(elementType, type))
1077
if (!TypeSemantics.
IsValidPolymorphicCast
(argument.ResultType, type))
System\Data\Common\CommandTrees\OperatorExpressions.cs (1)
460
Debug.Assert(TypeSemantics.
IsValidPolymorphicCast
(argument.ResultType, asType), "DbTreatExpression represents an invalid treat");
System\Data\Metadata\TypeSemantics.cs (1)
317
return
IsValidPolymorphicCast
(TypeUsage.Create(fromEdmType), TypeUsage.Create(toEdmType));