40 references to ReturnParameter
System.Data.Entity (30)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
174TypeUsage resultType = function.ReturnParameter.TypeUsage;
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (6)
333if (!TypeSemantics.IsAggregateFunction(function) || null == function.ReturnParameter) 1486if (null == function.ReturnParameter) 1501return function.ReturnParameter.TypeUsage; 1877if (function.IsComposableAttribute && null == function.ReturnParameter) 1884if (function.ReturnParameter != null) 1886if (!CheckDataSpace(function.ReturnParameter.TypeUsage))
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
283Debug.Assert(object.ReferenceEquals(resultType, function.ReturnParameter.TypeUsage), "DbFunctionExpression result type must be function return type");
System\Data\Common\EntityUtil.cs (3)
1293if (null == functionImport.ReturnParameter) 1301functionImport.ReturnParameter.TypeUsage.EdmType.FullName, functionImport.Name); 1702TypeHelpers.GetFullName(function.ReturnParameter.TypeUsage),
System\Data\Mapping\FunctionImportMappingComposable.cs (5)
123if (!Command.EqualTypes(functionViewType, this.FunctionImport.ReturnParameter.TypeUsage)) 125Debug.Assert(TypeSemantics.IsPromotableTo(functionViewType, this.FunctionImport.ReturnParameter.TypeUsage), "Mapping expression result type must be promotable to the c-space function return type."); 128CollectionType expectedCollectionType = (CollectionType)this.FunctionImport.ReturnParameter.TypeUsage.EdmType; 229TypeSemantics.IsPromotableTo(queryExpression.ResultType, this.FunctionImport.ReturnParameter.TypeUsage), 236TypeSemantics.IsEqual(queryExpression.ResultType, this.FunctionImport.ReturnParameter.TypeUsage),
System\Data\Mapping\StorageMappingItemLoader.cs (2)
2282functionImport.ReturnParameter.TypeUsage.EdmType.FullName, 2284sTypeTargetFunction.ReturnParameter.TypeUsage.EdmType.FullName,
System\Data\Metadata\EdmItemCollection.cs (1)
472if (!TypeSemantics.IsStructurallyEqual(function.ReturnParameter.TypeUsage, generatedDefinition.Body.ResultType))
System\Data\Metadata\StoreItemCollection.cs (4)
374if (sTypeFunction.ReturnParameter != null) 377MetadataHelper.ConvertStoreTypeUsageToEdmTypeUsage(sTypeFunction.ReturnParameter.TypeUsage); 381sTypeFunction.ReturnParameter.Name, 383sTypeFunction.ReturnParameter.GetParameterMode());
System\Data\Metadata\TypeHelpers.cs (3)
586if (tvf.ReturnParameter != null && TypeSemantics.IsCollectionType(tvf.ReturnParameter.TypeUsage)) 588var expectedElementTypeUsage = ((CollectionType)tvf.ReturnParameter.TypeUsage.EdmType).TypeUsage;
System\Data\Query\InternalTrees\ScalarOps.cs (2)
369: base(OpType.Function, function.ReturnParameter.TypeUsage) 840: base(OpType.Aggregate, aggFunc.ReturnParameter.TypeUsage)
System\Data\SqlClient\SqlProviderManifest.cs (2)
239if ((edmFunction.ReturnParameter != null && Helper.IsSpatialType(edmFunction.ReturnParameter.TypeUsage)) ||
System.Data.Entity.Design (10)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (6)
159if (function.ReturnParameter != null) 161var returnTypeUsage = function.ReturnParameter.TypeUsage; 216if (function.ReturnParameter != null && !returnParameterHandled) 219if (function.ReturnParameter.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 222var elementType = ((CollectionType)function.ReturnParameter.TypeUsage.EdmType).TypeUsage.EdmType; 234Debug.Assert(function.ReturnParameter == null || returnParameterHandled, "ReturnParameter was not handled.");
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
321Debug.Assert(functionImport.ReturnParameter.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType, "functionImport is expected to return Collection(ComplexType)"); 322var modelCollectionType = (CollectionType)functionImport.ReturnParameter.TypeUsage.EdmType;
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
146if (null != functionImport.ReturnParameter) 149returnType = functionImport.ReturnParameter.TypeUsage.EdmType;