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