20 instantiations of CollectionType
System.Data.Entity (20)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
129retType = new CollectionType(mappedElementType);
System\Data\Common\Internal\Materialization\Translator.cs (1)
493result = new CollectionType(result);
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (3)
178CollectionType collectionType = new CollectionType(_typeSubElement.GetTypeUsage()); 199_typeUsage = TypeUsage.Create(new CollectionType(_typeUsageBuilder.TypeUsage)); 208_typeUsage = TypeUsage.Create(new CollectionType(_typeUsageBuilder.TypeUsage));
System\Data\EntityModel\SchemaObjectModel\ModelFunction.cs (1)
56return TypeUsage.Create(new CollectionType(_typeUsageBuilder.TypeUsage));
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (1)
89return TypeUsage.Create(new CollectionType(base.TypeUsage));
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (1)
88return TypeUsage.Create(new CollectionType(base.TypeUsage));
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (1)
228_typeUsage = TypeUsage.Create(new CollectionType(_typeUsage));
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (2)
300clrType = new CollectionType(elemType); 339cdmType = new CollectionType(elemType);
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
228TypeUsage result = TypeUsage.Create(new CollectionType(TypeUsage.Create(rowType)));
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
697CollectionType collectionType = new CollectionType(rowType);
System\Data\Metadata\Converter.cs (2)
742typeUsage = TypeUsage.Create(new CollectionType(propertyType)); 1452result = TypeUsage.Create(new CollectionType(elementTypeUsage), FacetValues.NullFacetValues);
System\Data\Metadata\Edm\EdmType.cs (1)
285Interlocked.CompareExchange<CollectionType>(ref _collectionType, new CollectionType(this), null);
System\Data\Metadata\Edm\TypeUsage.cs (1)
428result = TypeUsage.Create(new CollectionType(newTypeUsage), this.Facets);
System\Data\Metadata\TypeHelpers.cs (2)
359return new CollectionType(elementType); 369return TypeUsage.Create(new CollectionType(elementType));
System\Data\Metadata\TypeSemantics.cs (1)
915commonType = new CollectionType(commonTypeUsage);
114 references to CollectionType
System.Data.Entity (97)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
972TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(expression.ResultType).TypeUsage);
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (6)
1297CollectionType inputType = TypeHelpers.GetEdmType<CollectionType>(argument.ResultType); 1318return TypeHelpers.GetEdmType<CollectionType>(argument.ResultType).TypeUsage; 1592CollectionType collectionType = null; 1593if (TypeHelpers.TryGetEdmType<CollectionType>(instanceType, out collectionType) && 1972return CheckDataSpace(((CollectionType)item).TypeUsage);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
125CollectionType collectionType = (CollectionType)type;
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (3)
308CollectionType collType = type.EdmType as CollectionType; 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 (4)
50CollectionType collectionType; 62internal static bool TryGetFunctionImportReturnCollectionType(EdmFunction functionImport, int resultSetIndex, out CollectionType collectionType) 68collectionType = (CollectionType)returnParameter.TypeUsage.EdmType; 712TypeUsage elementType = ((CollectionType)typeUsage.EdmType).TypeUsage;
System\Data\EntityClient\EntityCommandDefinition.cs (1)
193TypeUsage elementType = ((CollectionType)storeResultType.EdmType).TypeUsage;
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (1)
178CollectionType collectionType = new CollectionType(_typeSubElement.GetTypeUsage());
System\Data\Mapping\BaseMetadataMappingVisitor.cs (2)
241Visit((CollectionType)edmType); 305protected virtual void Visit(CollectionType collectionType)
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)
128CollectionType expectedCollectionType = (CollectionType)this.FunctionImport.ReturnParameter.TypeUsage.EdmType; 438CollectionType functionImportReturnType; 445var collectionType = (CollectionType)queryExpression.ResultType.EdmType;
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
557protected override void Visit(CollectionType collectionType)
System\Data\Mapping\StorageMappingItemLoader.cs (2)
2909CollectionType collectionType = containerType as CollectionType;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
697CollectionType collectionType = new CollectionType(rowType);
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
115CollectionType queryResultType = (commandTree.Query.ResultType.EdmType) as CollectionType;
System\Data\Metadata\Edm\CollectionType.cs (2)
97CollectionType other = (CollectionType)item;
System\Data\Metadata\Edm\EdmType.cs (3)
60private CollectionType _collectionType; 281public CollectionType GetCollectionType() 285Interlocked.CompareExchange<CollectionType>(ref _collectionType, new CollectionType(this), null);
System\Data\Metadata\Edm\TypeUsage.cs (2)
426CollectionType sspaceCollectionType = ((CollectionType)edmType);
System\Data\Metadata\EdmValidator.cs (2)
171ValidateCollectionType((CollectionType)item, errors, validatedItems); 232private void ValidateCollectionType(CollectionType item, List<EdmItemError> errors, HashSet<MetadataItem> 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 (5)
357internal static CollectionType CreateCollectionType(TypeUsage elementType) 571return ((CollectionType)type.EdmType).TypeUsage; 588var expectedElementTypeUsage = ((CollectionType)tvf.ReturnParameter.TypeUsage.EdmType).TypeUsage; 602CollectionType collectionType; 603if (TypeHelpers.TryGetEdmType<CollectionType>(type, out collectionType))
System\Data\Metadata\TypeSemantics.cs (6)
816return TryGetCommonType((CollectionType)edmType1, 817(CollectionType)edmType2, 906private static bool TryGetCommonType(CollectionType collectionType1, CollectionType collectionType2, out EdmType commonType) 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 (3)
183return RewriteCollection(expression, (CollectionType)expression.ResultType.EdmType); 457private DbExpression RewriteCollection(DbExpression expression, CollectionType collectionType) 746TypeUsage elementType = ((CollectionType)expression.ResultType.EdmType).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 (2)
2156CollectionType outputType = TypeHelpers.GetEdmType<CollectionType>(TypeHelpers.GetCommonTypeUsage(left.ResultType, right.ResultType));
System\Data\Query\PlanCompiler\ITreeGenerator.cs (6)
341return TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(typeUsage).TypeUsage); 1138CollectionType targetCollectionType = TypeHelpers.GetEdmType<CollectionType>(targetType); 1610Var outputVar = _iqtCommand.CreateSetOpVar(TypeHelpers.GetEdmType<CollectionType>(expression.ResultType).TypeUsage); 2084CollectionType resultType = TypeHelpers.GetEdmType<CollectionType>(e.ResultType);
System\Data\Query\PlanCompiler\NestPullup.cs (2)
1738md.CollectionType collType = TypeHelpers.GetEdmType<md.CollectionType>(op.Var.Type);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
239md.CollectionType collectionType; 240if (TypeHelpers.TryGetEdmType<md.CollectionType>(type, out collectionType))
System\Data\Query\PlanCompiler\Normalizer.cs (1)
173softCastType = TypeHelpers.GetEdmType<CollectionType>(argNode.Op.Type).TypeUsage;
System\Data\Query\PlanCompiler\PreProcessor.cs (2)
1926CollectionType collectionType = TypeHelpers.GetEdmType<CollectionType>(op.Type);
System\Data\Query\PlanCompiler\ProviderCommandInfoUtils.cs (2)
66md.CollectionType collType = TypeHelpers.GetEdmType<md.CollectionType>(cqtree.Query.ResultType);
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); 2934CollectionType collectionType = TypeHelpers.GetEdmType<CollectionType>(e.ResultType); 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 (12)
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)
322var modelCollectionType = (CollectionType)functionImport.ReturnParameter.TypeUsage.EdmType;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
535var collectionType = complexType.GetCollectionType();
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
578var collectionType = tvfReturnType.GetCollectionType();
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 (3)
DynamicData\ModelProviders\EFColumnProvider.cs (3)
102else if (edmType is CollectionType) { 104base.ColumnType = ((EFDataModelProvider)this.Table.DataModel).GetClrType(((CollectionType)edmType).TypeUsage.EdmType); 147return edmType is EntityType || edmType is CollectionType || edmType is PrimitiveType || edmType is EnumType;