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