15 references to IsPromotableTo
System.Data.Entity (15)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
41(fromType, toType) => TypeSemantics.IsPromotableTo(fromType, toType),
System\Data\Common\EntitySql\SemanticAnalyzer.cs (3)
1372bool isPromotable = TypeSemantics.IsPromotableTo(args[idx].ResultType, memberModelTypeUsage); 1376if (!isPromotable && !TypeSemantics.IsPromotableTo(memberModelTypeUsage, args[idx].ResultType)) 2989if (!TypeSemantics.IsPromotableTo(expr.ResultType, sr.TypeResolver.Int64Type))
System\Data\Common\EntitySql\SemanticResolver.cs (1)
1053return TypeSemantics.IsPromotableTo(fromType, toType);
System\Data\Mapping\FunctionImportMappingComposable.cs (3)
125Debug.Assert(TypeSemantics.IsPromotableTo(functionViewType, this.FunctionImport.ReturnParameter.TypeUsage), "Mapping expression result type must be promotable to the c-space function return type."); 162Debug.Assert(TypeSemantics.IsPromotableTo(argumentNode.Op.Type, commandParam.ResultType), "Argument type must be promotable to parameter type."); 229TypeSemantics.IsPromotableTo(queryExpression.ResultType, this.FunctionImport.ReturnParameter.TypeUsage),
System\Data\Metadata\TypeSemantics.cs (6)
81IsPromotableTo(fromType, toType); 153return IsPromotableTo(TypeHelpers.GetElementTypeUsage(fromType), 162return IsPromotableTo(TypeHelpers.GetElementTypeUsage(fromType), 770if (!IsPromotableTo(fromRowType.Properties[i].TypeUsage, toRowType.Properties[i].TypeUsage)) 857if (IsPromotableTo(type1, type2)) 863if (IsPromotableTo(type2, type1))
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
781if (!TypeSemantics.IsPromotableTo(actualReturnType, expectedReturnType))