79 references to TypeUsage
System.Data.Entity (69)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
174TypeUsage resultType = function.ReturnParameter.TypeUsage;
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (5)
341TypeUsage paramType = expectedParams[idx].TypeUsage; 1497ArgumentValidation.RequireCompatibleType(exp, expectedParams[idx].TypeUsage, "arguments", idx); 1501return function.ReturnParameter.TypeUsage; 1854if (!CheckDataSpace(paramMeta.TypeUsage)) 1886if (!CheckDataSpace(function.ReturnParameter.TypeUsage))
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
71TypeUsage mappedParamType = this.VisitTypeUsage(funcParam.TypeUsage);
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (3)
158Dump(param.TypeUsage, "ParameterType"); 255Dump(function.ReturnParameters[0].TypeUsage, "ReturnType"); 262Dump(returnParameter.TypeUsage, returnParameter.Name);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
262AppendParameters(funcInfo, func.Parameters.Select(fp => new KeyValuePair<string, TypeUsage>(fp.Name, fp.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\EntitySql\FunctionOverloadResolver.cs (2)
37(functionParameter) => functionParameter.TypeUsage, 64(functionParameter) => functionParameter.TypeUsage,
System\Data\Common\EntitySql\SemanticAnalyzer.cs (4)
1217ConvertUntypedNullsInArguments(args, functionType.Parameters, (parameter) => parameter.TypeUsage); 1283Debug.Assert(TypeSemantics.IsCollectionType(functionType.Parameters[0].TypeUsage), "functionType.Parameters[0].Type is CollectionType"); 1288ConvertUntypedNullsInArguments(args, functionType.Parameters, (parameter) => TypeHelpers.GetElementTypeUsage(parameter.TypeUsage)); 1484ConvertUntypedNullsInArguments(args, functionType.Parameters, (parameter) => parameter.TypeUsage);
System\Data\Common\EntityUtil.cs (2)
1301functionImport.ReturnParameter.TypeUsage.EdmType.FullName, functionImport.Name); 1702TypeHelpers.GetFullName(function.ReturnParameter.TypeUsage),
System\Data\Common\Utils\MetadataHelper.cs (2)
66&& returnParameter.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 68collectionType = (CollectionType)returnParameter.TypeUsage.EdmType;
System\Data\EntityClient\EntityCommandDefinition.cs (2)
188if (returnParameter != null && returnParameter.TypeUsage != null) 191storeResultType = returnParameter.TypeUsage;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
333Visit(functionParameter.TypeUsage);
System\Data\Mapping\FunctionImportMappingComposable.cs (6)
56m_commandParameters = functionImport.Parameters.Select(p => TypeHelpers.GetPrimitiveTypeUsageForScalar(p.TypeUsage).Parameter(p.Name)).ToArray(); 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 (11)
1777PrimitiveType importType = Helper.AsPrimitive(importParameter.TypeUsage.EdmType); 1786PrimitiveType cspaceTargetType = (PrimitiveType)StoreItemCollection.StoreProviderManifest.GetEdmType(targetParameter.TypeUsage).EdmType; 1800var schemaErrorMessage = Helper.IsEnumType(importParameter.TypeUsage.EdmType) ? 1804importParameter.TypeUsage.EdmType.FullName, 1805Helper.GetUnderlyingEdmTypeForEnumType(importParameter.TypeUsage.EdmType).Name) : 2282functionImport.ReturnParameter.TypeUsage.EdmType.FullName, 2284sTypeTargetFunction.ReturnParameter.TypeUsage.EdmType.FullName, 4280parameter.TypeUsage, 4292parameter.TypeUsage.EdmType, 4404PrimitiveType rowsAffectedParameterType = (PrimitiveType)rowsAffectedParameter.TypeUsage.EdmType; 4406if (!TypeSemantics.IsIntegerNumericType(rowsAffectedParameter.TypeUsage))
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
136TypeUsage parameterType = parameterBinding.Parameter.TypeUsage;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
703functionMapping.Function.Parameters.Select(paramInfo => new KeyValuePair<string, TypeUsage>(paramInfo.Name, paramInfo.TypeUsage));
System\Data\Mapping\ViewGeneration\Utils\ExternalCalls.cs (1)
106functionParameters.Select(pInfo => pInfo.TypeUsage.Variable(pInfo.Name)));
System\Data\Metadata\Edm\EdmFunction.cs (1)
341(param) => param.TypeUsage,
System\Data\Metadata\EdmItemCollection.cs (2)
328(param) => MetadataHelper.ConvertStoreTypeUsageToEdmTypeUsage(param.TypeUsage), 472if (!TypeSemantics.IsStructurallyEqual(function.ReturnParameter.TypeUsage, generatedDefinition.Body.ResultType))
System\Data\Metadata\StoreItemCollection.cs (2)
377MetadataHelper.ConvertStoreTypeUsageToEdmTypeUsage(sTypeFunction.ReturnParameter.TypeUsage); 392TypeUsage edmTypeUsage = MetadataHelper.ConvertStoreTypeUsageToEdmTypeUsage(parameter.TypeUsage);
System\Data\Metadata\TypeHelpers.cs (2)
586if (tvf.ReturnParameter != null && TypeSemantics.IsCollectionType(tvf.ReturnParameter.TypeUsage)) 588var expectedElementTypeUsage = ((CollectionType)tvf.ReturnParameter.TypeUsage.EdmType).TypeUsage;
System\Data\Objects\ObjectContext.cs (1)
2793typeUsage = functionParameter.TypeUsage;
System\Data\Query\InternalTrees\ScalarOps.cs (2)
369: base(OpType.Function, function.ReturnParameter.TypeUsage) 840: base(OpType.Aggregate, aggFunc.ReturnParameter.TypeUsage)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1070argNodes.Add(BuildSoftCast(VisitExprAsScalar(e.Arguments[idx]), e.Function.Parameters[idx].TypeUsage));
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (3)
560if (Helper.IsSpatialType(functionParameter.TypeUsage, out spatialTypeKind)) 769Debug.Assert(functionExpression.Function.Parameters.Count > 0 && Helper.IsSpatialType(functionExpression.Function.Parameters[0].TypeUsage), "Instance property function does not have instance parameter?"); 775Debug.Assert(functionExpression.Function.Parameters.Count > 0 && Helper.IsSpatialType(functionExpression.Function.Parameters[0].TypeUsage), "Instance method function does not have instance parameter?");
System\Data\SqlClient\SqlProviderManifest.cs (9)
239if ((edmFunction.ReturnParameter != null && Helper.IsSpatialType(edmFunction.ReturnParameter.TypeUsage)) || 240edmFunction.Parameters.Any(p => Helper.IsSpatialType(p.TypeUsage))) 253string name = ((CollectionType)funParams[0].TypeUsage.EdmType).TypeUsage.EdmType.Name; 264string name = funParams[0].TypeUsage.EdmType.Name; 272string param1Name = funParams[1].TypeUsage.EdmType.Name; 273string param2Name = funParams[2].TypeUsage.EdmType.Name; 282string name = funParams[1].TypeUsage.EdmType.Name; 310string name = ((CollectionType)funParams[0].TypeUsage.EdmType).TypeUsage.EdmType.Name; 318if (funParam.TypeUsage.EdmType.Name.Equals("Int64", StringComparison.OrdinalIgnoreCase))
System\Data\SqlClient\SqlProviderServices.cs (1)
118parameter = CreateSqlParameter(functionParameter.Name, functionParameter.TypeUsage, functionParameter.Mode, DBNull.Value, preventTruncation, sqlVersion);
System.Data.Entity.Design (10)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (4)
161var returnTypeUsage = function.ReturnParameter.TypeUsage; 219if (function.ReturnParameter.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType) 222var elementType = ((CollectionType)function.ReturnParameter.TypeUsage.EdmType).TypeUsage.EdmType; 242_writer.WriteAttributeString(XmlConstants.TypeAttribute, GetFullName(parameter.TypeUsage.EdmType));
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\Entity\Design\EntityModelSchemaGenerator.cs (1)
562TypeUsage cspaceTypeUsage = storeParameter.TypeUsage.GetModelTypeUsage();
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (3)
149returnType = functionImport.ReturnParameter.TypeUsage.EdmType; 645Debug.Assert(null != parameter && MetadataUtil.IsPrimitiveType(parameter.TypeUsage.EdmType), 656PrimitiveType parameterType = (PrimitiveType)parameter.TypeUsage.EdmType;