87 references to TypeUsage
System.Data.Entity (74)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
972TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(expression.ResultType).TypeUsage);
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (4)
1298if (!TypeHelpers.IsValidDistinctOpType(inputType.TypeUsage)) 1318return TypeHelpers.GetEdmType<CollectionType>(argument.ResultType).TypeUsage; 1597TypeUsage elementType = collectionType.TypeUsage; 1972return CheckDataSpace(((CollectionType)item).TypeUsage);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
126TypeUsage mappedElementType = this.VisitTypeUsage(collectionType.TypeUsage); 127if (!object.ReferenceEquals(collectionType.TypeUsage, mappedElementType))
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
318BuildTypeName(text, collType.TypeUsage); 909RowType outputType = TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(e.ResultType).TypeUsage);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
324ValidateQueryResultType(((CollectionType)resultType.EdmType).TypeUsage, errCtx);
System\Data\Common\Internal\Materialization\Translator.cs (3)
366EdmType edmElementType = ((CollectionType)edmType).TypeUsage.EdmType; 490result = ResolveSpanType(((CollectionType)result).TypeUsage.EdmType); 1940TypeUsage edmElementType = ((CollectionType)columnMap.Type.EdmType).TypeUsage; // the TypeUsage of the Element of the collection.
System\Data\Common\Utils\MetadataHelper.cs (2)
53resultType = collectionType.TypeUsage.EdmType as T; 712TypeUsage elementType = ((CollectionType)typeUsage.EdmType).TypeUsage;
System\Data\EntityClient\EntityCommandDefinition.cs (1)
193TypeUsage elementType = ((CollectionType)storeResultType.EdmType).TypeUsage;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
308Visit(collectionType.TypeUsage);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (4)
299EdmType elemType = ConvertCSpaceToOSpaceType(((CollectionType)cdmType).TypeUsage.EdmType); 338EdmType elemType = ConvertOSpaceToCSpaceType(((CollectionType)clrType).TypeUsage.EdmType); 560edmMemberType = ((CollectionType)edmMember.TypeUsage.EdmType).TypeUsage.EdmType; 561objectMemberType = ((CollectionType)objectMember.TypeUsage.EdmType).TypeUsage.EdmType;
System\Data\Mapping\FunctionImportMappingComposable.cs (5)
129var expectedElementType = expectedCollectionType.TypeUsage; 446Debug.Assert(TypeSemantics.IsRowType(collectionType.TypeUsage), "Store function must be TVF (collection of rows expected)."); 447var rowType = (RowType)collectionType.TypeUsage.EdmType; 453if (TypeSemantics.IsEqual(functionImportReturnType.TypeUsage, column.TypeUsage)) 459return propertyAccess.CastTo(functionImportReturnType.TypeUsage);
System\Data\Mapping\StorageMappingItemLoader.cs (1)
2944memberType = collectionType.TypeUsage.EdmType;
System\Data\Mapping\ViewGeneration\GeneratedView.cs (1)
116if ((queryResultType == null) || (!setMapping.Set.ElementType.IsAssignableFrom(queryResultType.TypeUsage.EdmType)))
System\Data\Metadata\Edm\CollectionType.cs (2)
100return this.TypeUsage.EdmEquals(other.TypeUsage);
System\Data\Metadata\Edm\TypeUsage.cs (1)
427TypeUsage newTypeUsage = sspaceCollectionType.TypeUsage.GetModelTypeUsage();
System\Data\Metadata\EdmValidator.cs (2)
242if (item.TypeUsage == null) 249InternalValidate(item.TypeUsage, errors, validatedItems);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
518foundTarget = SessionData.CspaceToOspace.TryGetValue((StructuralType)((CollectionType)cspaceProperty.TypeUsage.EdmType).TypeUsage.EdmType, out findType);
System\Data\Metadata\TypeHelpers.cs (3)
571return ((CollectionType)type.EdmType).TypeUsage; 588var expectedElementTypeUsage = ((CollectionType)tvf.ReturnParameter.TypeUsage.EdmType).TypeUsage; 605elementType = collectionType.TypeUsage;
System\Data\Metadata\TypeSemantics.cs (4)
909if (!TryGetCommonType(collectionType1.TypeUsage, collectionType2.TypeUsage, out commonTypeUsage)) 1054return CompareTypes(((CollectionType)fromType.EdmType).TypeUsage, 1055((CollectionType)toType.EdmType).TypeUsage,
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
985((CollectionType)left.EdmType).TypeUsage, 986((CollectionType)right.EdmType).TypeUsage);
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
1799if (!TypeUsageEquals(returnType, ((CollectionType)operand.ResultType.EdmType).TypeUsage))
System\Data\Objects\FieldDescriptor.cs (1)
71TypeUsage elementTypeUse = ((CollectionType)edmType).TypeUsage;
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
181EdmType elementType = ((CollectionType)resultType.EdmType).TypeUsage.EdmType;
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (2)
127if (entitySet.ElementType.IsAssignableFrom(((CollectionType)treeResultType.EdmType).TypeUsage.EdmType)) 199resultItemEdmType = ((CollectionType)ResultType.EdmType).TypeUsage;
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
746TypeUsage elementType = ((CollectionType)expression.ResultType.EdmType).TypeUsage;
System\Data\Query\InternalTrees\ColumnMapFactory.cs (3)
74CollectionColumnMap collection = new SimpleCollectionColumnMap(baseStructuralType.GetCollectionType().TypeUsage, baseStructuralType.Name, polymorphicMap, null, null); 119CollectionColumnMap collection = new SimpleCollectionColumnMap(edmType.GetCollectionType().TypeUsage, edmType.Name, elementColumnMap, null, null); 200CollectionColumnMap collectionMap = new SimpleCollectionColumnMap(rowType.GetCollectionType().TypeUsage,
System\Data\Query\InternalTrees\Command.cs (1)
1133Table t = this.CreateTableInstance(Command.CreateTableDefinition(TypeHelpers.GetEdmType<CollectionType>(v.Type).TypeUsage));
System\Data\Query\PlanCompiler\AggregatePushdown.cs (1)
371newSoftCastOp = command.CreateSoftCastOp(TypeHelpers.GetEdmType<CollectionType>(softCastOp.Type).TypeUsage);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
2159if (TypeHelpers.TryGetEdmType<RowType>(outputType.TypeUsage, out outputElementType))
System\Data\Query\PlanCompiler\ITreeGenerator.cs (4)
341return TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(typeUsage).TypeUsage); 1139targetType = targetCollectionType.TypeUsage; 1610Var outputVar = _iqtCommand.CreateSetOpVar(TypeHelpers.GetEdmType<CollectionType>(expression.ResultType).TypeUsage); 2085TypeUsage elementTypeUsage = resultType.TypeUsage;
System\Data\Query\PlanCompiler\NestPullup.cs (1)
1739if (TypeUtils.IsUdt(collType.TypeUsage))
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
243md.TypeUsage newElementType = GetNewType(collectionType.TypeUsage);
System\Data\Query\PlanCompiler\Normalizer.cs (1)
173softCastType = TypeHelpers.GetEdmType<CollectionType>(argNode.Op.Type).TypeUsage;
System\Data\Query\PlanCompiler\PreProcessor.cs (2)
1938Node fakeChild = m_command.CreateNode(m_command.CreateNullOp(collectionType.TypeUsage)); 2020Node caseNode = m_command.CreateNode(m_command.CreateCaseOp(collectionType.TypeUsage), caseArgNodes);
System\Data\Query\PlanCompiler\ProviderCommandInfoUtils.cs (2)
67PlanCompiler.Assert(md.TypeSemantics.IsRowType(collType.TypeUsage), "command rowtype is not a record"); 70Dictionary<Var, md.EdmProperty> outputVarMap = BuildOutputVarMap(projectOp, collType.TypeUsage);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (2)
473type = TypeHelpers.GetEdmType<md.CollectionType>(type).TypeUsage; 723md.TypeUsage elementType = TypeHelpers.GetEdmType<md.CollectionType>(type).TypeUsage;
System\Data\SqlClient\SqlGen\SqlGenerator.cs (4)
1438RowType groupByType = TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(e.ResultType).TypeUsage); 2936bool isScalarElement = TypeSemantics.IsPrimitiveType(collectionType.TypeUsage); 2946resultSql.Append(GetSqlPrimitiveType(collectionType.TypeUsage)); 4113type = TypeHelpers.GetEdmType<CollectionType>(e.ResultType).TypeUsage;
System\Data\SqlClient\SqlProviderManifest.cs (2)
253string name = ((CollectionType)funParams[0].TypeUsage.EdmType).TypeUsage.EdmType.Name; 310string name = ((CollectionType)funParams[0].TypeUsage.EdmType).TypeUsage.EdmType.Name;
System.Data.Entity.Design (10)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (3)
166returnTypeUsage = ((CollectionType)returnTypeUsage.EdmType).TypeUsage; 222var elementType = ((CollectionType)function.ReturnParameter.TypeUsage.EdmType).TypeUsage.EdmType; 784type = ((CollectionType)type).TypeUsage.EdmType;
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
323Debug.Assert(modelCollectionType.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, "functionImport is expected to return Collection(ComplexType)"); 324var modelComplexType = (ComplexType)modelCollectionType.TypeUsage.EdmType;
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
154returnType = ((CollectionType)returnType).TypeUsage.EdmType; 511returnType = ((CollectionType)returnType).TypeUsage.EdmType;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
345if (MetadataUtil.IsComplexType(((CollectionType)Item.TypeUsage.EdmType).TypeUsage.EdmType)) 351Debug.Assert(MetadataUtil.IsPrimitiveType(((CollectionType)Item.TypeUsage.EdmType).TypeUsage.EdmType), 581TypeUsage typeUsage = ((CollectionType)propertyType).TypeUsage;
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1429Type propertyClrType = GetClrTypeForCSpaceType(workspace, (EntityType)((CollectionType)member.TypeUsage.EdmType).TypeUsage.EdmType);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
506TypeUsage typeUsage = ((CollectionType)propertyType).TypeUsage;
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFColumnProvider.cs (1)
104base.ColumnType = ((EFDataModelProvider)this.Table.DataModel).GetClrType(((CollectionType)edmType).TypeUsage.EdmType);