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