20 instantiations of CollectionType
System.Data.Entity (20)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
129
retType = new
CollectionType
(mappedElementType);
System\Data\Common\Internal\Materialization\Translator.cs (1)
493
result = new
CollectionType
(result);
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (3)
178
CollectionType 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)
56
return TypeUsage.Create(new
CollectionType
(_typeUsageBuilder.TypeUsage));
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (1)
89
return TypeUsage.Create(new
CollectionType
(base.TypeUsage));
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (1)
88
return 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)
300
clrType = new
CollectionType
(elemType);
339
cdmType = new
CollectionType
(elemType);
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
228
TypeUsage result = TypeUsage.Create(new
CollectionType
(TypeUsage.Create(rowType)));
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
697
CollectionType collectionType = new
CollectionType
(rowType);
System\Data\Metadata\Converter.cs (2)
742
typeUsage = TypeUsage.Create(new
CollectionType
(propertyType));
1452
result = TypeUsage.Create(new
CollectionType
(elementTypeUsage), FacetValues.NullFacetValues);
System\Data\Metadata\Edm\EdmType.cs (1)
285
Interlocked.CompareExchange<CollectionType>(ref _collectionType, new
CollectionType
(this), null);
System\Data\Metadata\Edm\TypeUsage.cs (1)
428
result = TypeUsage.Create(new
CollectionType
(newTypeUsage), this.Facets);
System\Data\Metadata\TypeHelpers.cs (2)
359
return new
CollectionType
(elementType);
369
return TypeUsage.Create(new
CollectionType
(elementType));
System\Data\Metadata\TypeSemantics.cs (1)
915
commonType = new
CollectionType
(commonTypeUsage);
114 references to CollectionType
System.Data.Entity (97)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
972
TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<
CollectionType
>(expression.ResultType).TypeUsage);
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (6)
1297
CollectionType
inputType = TypeHelpers.GetEdmType<
CollectionType
>(argument.ResultType);
1318
return TypeHelpers.GetEdmType<
CollectionType
>(argument.ResultType).TypeUsage;
1592
CollectionType
collectionType = null;
1593
if (TypeHelpers.TryGetEdmType<
CollectionType
>(instanceType, out collectionType) &&
1972
return CheckDataSpace(((
CollectionType
)item).TypeUsage);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
125
CollectionType
collectionType = (
CollectionType
)type;
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (3)
308
CollectionType
collType = type.EdmType as
CollectionType
;
909
RowType outputType = TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<
CollectionType
>(e.ResultType).TypeUsage);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
324
ValidateQueryResultType(((
CollectionType
)resultType.EdmType).TypeUsage, errCtx);
System\Data\Common\Internal\Materialization\Translator.cs (3)
366
EdmType edmElementType = ((
CollectionType
)edmType).TypeUsage.EdmType;
490
result = ResolveSpanType(((
CollectionType
)result).TypeUsage.EdmType);
1940
TypeUsage edmElementType = ((
CollectionType
)columnMap.Type.EdmType).TypeUsage; // the TypeUsage of the Element of the collection.
System\Data\Common\Utils\MetadataHelper.cs (4)
50
CollectionType
collectionType;
62
internal static bool TryGetFunctionImportReturnCollectionType(EdmFunction functionImport, int resultSetIndex, out
CollectionType
collectionType)
68
collectionType = (
CollectionType
)returnParameter.TypeUsage.EdmType;
712
TypeUsage elementType = ((
CollectionType
)typeUsage.EdmType).TypeUsage;
System\Data\EntityClient\EntityCommandDefinition.cs (1)
193
TypeUsage elementType = ((
CollectionType
)storeResultType.EdmType).TypeUsage;
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (1)
178
CollectionType
collectionType = new CollectionType(_typeSubElement.GetTypeUsage());
System\Data\Mapping\BaseMetadataMappingVisitor.cs (2)
241
Visit((
CollectionType
)edmType);
305
protected virtual void Visit(
CollectionType
collectionType)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (4)
299
EdmType elemType = ConvertCSpaceToOSpaceType(((
CollectionType
)cdmType).TypeUsage.EdmType);
338
EdmType elemType = ConvertOSpaceToCSpaceType(((
CollectionType
)clrType).TypeUsage.EdmType);
560
edmMemberType = ((
CollectionType
)edmMember.TypeUsage.EdmType).TypeUsage.EdmType;
561
objectMemberType = ((
CollectionType
)objectMember.TypeUsage.EdmType).TypeUsage.EdmType;
System\Data\Mapping\FunctionImportMappingComposable.cs (5)
128
CollectionType
expectedCollectionType = (
CollectionType
)this.FunctionImport.ReturnParameter.TypeUsage.EdmType;
438
CollectionType
functionImportReturnType;
445
var
collectionType = (
CollectionType
)queryExpression.ResultType.EdmType;
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
557
protected override void Visit(
CollectionType
collectionType)
System\Data\Mapping\StorageMappingItemLoader.cs (2)
2909
CollectionType
collectionType = containerType as
CollectionType
;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
697
CollectionType
collectionType = new CollectionType(rowType);
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
115
CollectionType
queryResultType = (commandTree.Query.ResultType.EdmType) as
CollectionType
;
System\Data\Metadata\Edm\CollectionType.cs (2)
97
CollectionType
other = (
CollectionType
)item;
System\Data\Metadata\Edm\EdmType.cs (3)
60
private
CollectionType
_collectionType;
281
public
CollectionType
GetCollectionType()
285
Interlocked.CompareExchange<
CollectionType
>(ref _collectionType, new CollectionType(this), null);
System\Data\Metadata\Edm\TypeUsage.cs (2)
426
CollectionType
sspaceCollectionType = ((
CollectionType
)edmType);
System\Data\Metadata\EdmValidator.cs (2)
171
ValidateCollectionType((
CollectionType
)item, errors, validatedItems);
232
private void ValidateCollectionType(
CollectionType
item, List<EdmItemError> errors, HashSet<MetadataItem> validatedItems)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
518
foundTarget = SessionData.CspaceToOspace.TryGetValue((StructuralType)((
CollectionType
)cspaceProperty.TypeUsage.EdmType).TypeUsage.EdmType, out findType);
System\Data\Metadata\TypeHelpers.cs (5)
357
internal static
CollectionType
CreateCollectionType(TypeUsage elementType)
571
return ((
CollectionType
)type.EdmType).TypeUsage;
588
var expectedElementTypeUsage = ((
CollectionType
)tvf.ReturnParameter.TypeUsage.EdmType).TypeUsage;
602
CollectionType
collectionType;
603
if (TypeHelpers.TryGetEdmType<
CollectionType
>(type, out collectionType))
System\Data\Metadata\TypeSemantics.cs (6)
816
return TryGetCommonType((
CollectionType
)edmType1,
817
(
CollectionType
)edmType2,
906
private static bool TryGetCommonType(
CollectionType
collectionType1,
CollectionType
collectionType2, out EdmType commonType)
1054
return 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)
1799
if (!TypeUsageEquals(returnType, ((
CollectionType
)operand.ResultType.EdmType).TypeUsage))
System\Data\Objects\FieldDescriptor.cs (1)
71
TypeUsage elementTypeUse = ((
CollectionType
)edmType).TypeUsage;
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
181
EdmType elementType = ((
CollectionType
)resultType.EdmType).TypeUsage.EdmType;
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (2)
127
if (entitySet.ElementType.IsAssignableFrom(((
CollectionType
)treeResultType.EdmType).TypeUsage.EdmType))
199
resultItemEdmType = ((
CollectionType
)ResultType.EdmType).TypeUsage;
System\Data\Objects\Internal\ObjectSpanRewriter.cs (3)
183
return RewriteCollection(expression, (
CollectionType
)expression.ResultType.EdmType);
457
private DbExpression RewriteCollection(DbExpression expression,
CollectionType
collectionType)
746
TypeUsage elementType = ((
CollectionType
)expression.ResultType.EdmType).TypeUsage;
System\Data\Query\InternalTrees\Command.cs (1)
1133
Table t = this.CreateTableInstance(Command.CreateTableDefinition(TypeHelpers.GetEdmType<
CollectionType
>(v.Type).TypeUsage));
System\Data\Query\PlanCompiler\AggregatePushdown.cs (1)
371
newSoftCastOp = command.CreateSoftCastOp(TypeHelpers.GetEdmType<
CollectionType
>(softCastOp.Type).TypeUsage);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (2)
2156
CollectionType
outputType = TypeHelpers.GetEdmType<
CollectionType
>(TypeHelpers.GetCommonTypeUsage(left.ResultType, right.ResultType));
System\Data\Query\PlanCompiler\ITreeGenerator.cs (6)
341
return TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<
CollectionType
>(typeUsage).TypeUsage);
1138
CollectionType
targetCollectionType = TypeHelpers.GetEdmType<
CollectionType
>(targetType);
1610
Var outputVar = _iqtCommand.CreateSetOpVar(TypeHelpers.GetEdmType<
CollectionType
>(expression.ResultType).TypeUsage);
2084
CollectionType
resultType = TypeHelpers.GetEdmType<
CollectionType
>(e.ResultType);
System\Data\Query\PlanCompiler\NestPullup.cs (2)
1738
md.
CollectionType
collType = TypeHelpers.GetEdmType<md.
CollectionType
>(op.Var.Type);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
239
md.
CollectionType
collectionType;
240
if (TypeHelpers.TryGetEdmType<md.
CollectionType
>(type, out collectionType))
System\Data\Query\PlanCompiler\Normalizer.cs (1)
173
softCastType = TypeHelpers.GetEdmType<
CollectionType
>(argNode.Op.Type).TypeUsage;
System\Data\Query\PlanCompiler\PreProcessor.cs (2)
1926
CollectionType
collectionType = TypeHelpers.GetEdmType<
CollectionType
>(op.Type);
System\Data\Query\PlanCompiler\ProviderCommandInfoUtils.cs (2)
66
md.
CollectionType
collType = TypeHelpers.GetEdmType<md.
CollectionType
>(cqtree.Query.ResultType);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (2)
473
type = TypeHelpers.GetEdmType<md.
CollectionType
>(type).TypeUsage;
723
md.TypeUsage elementType = TypeHelpers.GetEdmType<md.
CollectionType
>(type).TypeUsage;
System\Data\SqlClient\SqlGen\SqlGenerator.cs (4)
1438
RowType groupByType = TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<
CollectionType
>(e.ResultType).TypeUsage);
2934
CollectionType
collectionType = TypeHelpers.GetEdmType<
CollectionType
>(e.ResultType);
4113
type = TypeHelpers.GetEdmType<
CollectionType
>(e.ResultType).TypeUsage;
System\Data\SqlClient\SqlProviderManifest.cs (2)
253
string name = ((
CollectionType
)funParams[0].TypeUsage.EdmType).TypeUsage.EdmType.Name;
310
string name = ((
CollectionType
)funParams[0].TypeUsage.EdmType).TypeUsage.EdmType.Name;
System.Data.Entity.Design (12)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (3)
166
returnTypeUsage = ((
CollectionType
)returnTypeUsage.EdmType).TypeUsage;
222
var elementType = ((
CollectionType
)function.ReturnParameter.TypeUsage.EdmType).TypeUsage.EdmType;
784
type = ((
CollectionType
)type).TypeUsage.EdmType;
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
322
var
modelCollectionType = (
CollectionType
)functionImport.ReturnParameter.TypeUsage.EdmType;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
535
var
collectionType = complexType.GetCollectionType();
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
578
var
collectionType = tvfReturnType.GetCollectionType();
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
154
returnType = ((
CollectionType
)returnType).TypeUsage.EdmType;
511
returnType = ((
CollectionType
)returnType).TypeUsage.EdmType;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
345
if (MetadataUtil.IsComplexType(((
CollectionType
)Item.TypeUsage.EdmType).TypeUsage.EdmType))
351
Debug.Assert(MetadataUtil.IsPrimitiveType(((
CollectionType
)Item.TypeUsage.EdmType).TypeUsage.EdmType),
581
TypeUsage typeUsage = ((
CollectionType
)propertyType).TypeUsage;
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1429
Type propertyClrType = GetClrTypeForCSpaceType(workspace, (EntityType)((
CollectionType
)member.TypeUsage.EdmType).TypeUsage.EdmType);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
506
TypeUsage typeUsage = ((
CollectionType
)propertyType).TypeUsage;
System.Web.DynamicData (3)
DynamicData\ModelProviders\EFColumnProvider.cs (3)
102
else if (edmType is
CollectionType
) {
104
base.ColumnType = ((EFDataModelProvider)this.Table.DataModel).GetClrType(((
CollectionType
)edmType).TypeUsage.EdmType);
147
return edmType is EntityType || edmType is
CollectionType
|| edmType is PrimitiveType || edmType is EnumType;