87 references to TypeUsage
System.Data.Entity (74)
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 (4)
1298
if (!TypeHelpers.IsValidDistinctOpType(inputType.
TypeUsage
))
1318
return TypeHelpers.GetEdmType<CollectionType>(argument.ResultType).
TypeUsage
;
1597
TypeUsage elementType = collectionType.
TypeUsage
;
1972
return CheckDataSpace(((CollectionType)item).
TypeUsage
);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
126
TypeUsage mappedElementType = this.VisitTypeUsage(collectionType.
TypeUsage
);
127
if (!object.ReferenceEquals(collectionType.
TypeUsage
, mappedElementType))
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
318
BuildTypeName(text, collType.
TypeUsage
);
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 (2)
53
resultType = collectionType.
TypeUsage
.EdmType as T;
712
TypeUsage elementType = ((CollectionType)typeUsage.EdmType).
TypeUsage
;
System\Data\EntityClient\EntityCommandDefinition.cs (1)
193
TypeUsage elementType = ((CollectionType)storeResultType.EdmType).
TypeUsage
;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
308
Visit(collectionType.
TypeUsage
);
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)
129
var expectedElementType = expectedCollectionType.
TypeUsage
;
446
Debug.Assert(TypeSemantics.IsRowType(collectionType.
TypeUsage
), "Store function must be TVF (collection of rows expected).");
447
var rowType = (RowType)collectionType.
TypeUsage
.EdmType;
453
if (TypeSemantics.IsEqual(functionImportReturnType.
TypeUsage
, column.TypeUsage))
459
return propertyAccess.CastTo(functionImportReturnType.
TypeUsage
);
System\Data\Mapping\StorageMappingItemLoader.cs (1)
2944
memberType = collectionType.
TypeUsage
.EdmType;
System\Data\Mapping\ViewGeneration\GeneratedView.cs (1)
116
if ((queryResultType == null) || (!setMapping.Set.ElementType.IsAssignableFrom(queryResultType.
TypeUsage
.EdmType)))
System\Data\Metadata\Edm\CollectionType.cs (2)
100
return this.
TypeUsage
.EdmEquals(other.
TypeUsage
);
System\Data\Metadata\Edm\TypeUsage.cs (1)
427
TypeUsage newTypeUsage = sspaceCollectionType.
TypeUsage
.GetModelTypeUsage();
System\Data\Metadata\EdmValidator.cs (2)
242
if (item.
TypeUsage
== null)
249
InternalValidate(item.
TypeUsage
, errors, 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 (3)
571
return ((CollectionType)type.EdmType).
TypeUsage
;
588
var expectedElementTypeUsage = ((CollectionType)tvf.ReturnParameter.TypeUsage.EdmType).
TypeUsage
;
605
elementType = collectionType.
TypeUsage
;
System\Data\Metadata\TypeSemantics.cs (4)
909
if (!TryGetCommonType(collectionType1.
TypeUsage
, collectionType2.
TypeUsage
, out commonTypeUsage))
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 (1)
746
TypeUsage elementType = ((CollectionType)expression.ResultType.EdmType).
TypeUsage
;
System\Data\Query\InternalTrees\ColumnMapFactory.cs (3)
74
CollectionColumnMap collection = new SimpleCollectionColumnMap(baseStructuralType.GetCollectionType().
TypeUsage
, baseStructuralType.Name, polymorphicMap, null, null);
119
CollectionColumnMap collection = new SimpleCollectionColumnMap(edmType.GetCollectionType().
TypeUsage
, edmType.Name, elementColumnMap, null, null);
200
CollectionColumnMap collectionMap = new SimpleCollectionColumnMap(rowType.GetCollectionType().
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 (1)
2159
if (TypeHelpers.TryGetEdmType<RowType>(outputType.
TypeUsage
, out outputElementType))
System\Data\Query\PlanCompiler\ITreeGenerator.cs (4)
341
return TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(typeUsage).
TypeUsage
);
1139
targetType = targetCollectionType.
TypeUsage
;
1610
Var outputVar = _iqtCommand.CreateSetOpVar(TypeHelpers.GetEdmType<CollectionType>(expression.ResultType).
TypeUsage
);
2085
TypeUsage elementTypeUsage = resultType.
TypeUsage
;
System\Data\Query\PlanCompiler\NestPullup.cs (1)
1739
if (TypeUtils.IsUdt(collType.
TypeUsage
))
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
243
md.TypeUsage newElementType = GetNewType(collectionType.
TypeUsage
);
System\Data\Query\PlanCompiler\Normalizer.cs (1)
173
softCastType = TypeHelpers.GetEdmType<CollectionType>(argNode.Op.Type).
TypeUsage
;
System\Data\Query\PlanCompiler\PreProcessor.cs (2)
1938
Node fakeChild = m_command.CreateNode(m_command.CreateNullOp(collectionType.
TypeUsage
));
2020
Node caseNode = m_command.CreateNode(m_command.CreateCaseOp(collectionType.
TypeUsage
), caseArgNodes);
System\Data\Query\PlanCompiler\ProviderCommandInfoUtils.cs (2)
67
PlanCompiler.Assert(md.TypeSemantics.IsRowType(collType.
TypeUsage
), "command rowtype is not a record");
70
Dictionary<Var, md.EdmProperty> outputVarMap = BuildOutputVarMap(projectOp, collType.
TypeUsage
);
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
);
2936
bool isScalarElement = TypeSemantics.IsPrimitiveType(collectionType.
TypeUsage
);
2946
resultSql.Append(GetSqlPrimitiveType(collectionType.
TypeUsage
));
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 (10)
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)
323
Debug.Assert(modelCollectionType.
TypeUsage
.EdmType.BuiltInTypeKind == BuiltInTypeKind.ComplexType, "functionImport is expected to return Collection(ComplexType)");
324
var modelComplexType = (ComplexType)modelCollectionType.
TypeUsage
.EdmType;
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 (1)
DynamicData\ModelProviders\EFColumnProvider.cs (1)
104
base.ColumnType = ((EFDataModelProvider)this.Table.DataModel).GetClrType(((CollectionType)edmType).
TypeUsage
.EdmType);