48 references to GetModelTypeUsage
System.Data.Entity (48)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (4)
1638memberTypes.Add(Helper.GetModelTypeUsage(members[idx])); 1699Debug.Assert(null != Helper.GetModelTypeUsage(property), "EdmMember metadata has a TypeUsage of null"); 1701return Helper.GetModelTypeUsage(property); 1730return Helper.GetModelTypeUsage(foundMember);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
1343TypeUsage memberModelTypeUsage = Helper.GetModelTypeUsage(member);
System\Data\EntityKey.cs (2)
746new[] { DbExpressionBuilder.Constant(Helper.GetModelTypeUsage(singletonKeyMember), _singletonKeyValue) 759keyColumns[i] = DbExpressionBuilder.Constant(Helper.GetModelTypeUsage(keyMember), _compositeKeyValues[i]).As(keyMember.Name);
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
214TypeUsage nodeType = Helper.GetModelTypeUsage(node);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (3)
442return DbExpressionBuilder.Null(Helper.GetModelTypeUsage(property)); 450return DbExpressionBuilder.Null(Helper.GetModelTypeUsage(property)); 466TypeUsage propertyType = Helper.GetModelTypeUsage(property);
System\Data\Mapping\ViewGeneration\Structures\Constant.cs (2)
163EdmType constType = Helper.GetModelTypeUsage(outputMember.LeafEdmMember).EdmType; 174EdmType constType = Helper.GetModelTypeUsage(outputMember.LeafEdmMember).EdmType;
System\Data\Mapping\ViewGeneration\Structures\MemberProjectedSlot.cs (2)
89TypeUsage memberPathTypeUsage = Helper.GetModelTypeUsage(m_memberPath.LeafEdmMember); 90outputMemberTypeUsage = Helper.GetModelTypeUsage(outputMember.LeafEdmMember);
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (2)
76TypeUsage modelTypeUsage = Helper.GetModelTypeUsage(outputMember.LeafEdmMember); 142TypeUsage modelTypeUsage = Helper.GetModelTypeUsage(outputMember.LeafEdmMember);
System\Data\Metadata\Edm\EntityType.cs (1)
190keyProperties.Add(new EdmProperty(keyMember.Name, Helper.GetModelTypeUsage(keyMember)));
System\Data\Metadata\TypeHelpers.cs (1)
420resultCols.Add(new KeyValuePair<string, TypeUsage>(keyProperty.Name, Helper.GetModelTypeUsage(keyProperty)));
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
591queryParam.TypeUsage = Helper.GetModelTypeUsage(parameterMember);
System\Data\Query\InternalTrees\Command.cs (1)
932return new PropertyOp(Helper.GetModelTypeUsage(prop), prop);
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (10)
125nullSentinelColumnMap = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(typeInfo.NullSentinelProperty), c_NullSentinelColumnName); 146ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 201ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 222ColumnMap propertyColumnMap = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 332return CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(prop), c_EntitySetIdColumnName); 410nullSentinelColumnMap = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(typeInfo.NullSentinelProperty), c_NullSentinelColumnName); 418propertyColumnMapList[i] = CreateColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 436entitySetIdColumnMap = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(typeInfo.EntitySetIdProperty), c_EntitySetIdColumnName); 447keyColList[i] = CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(property), property.Name); 479return CreateSimpleColumnMap(md.Helper.GetModelTypeUsage(prop), c_TypeIdColumnName);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (2)
2077Node newArg = BuildSoftCast(VisitExprAsScalar(e.Arguments[i]), Helper.GetModelTypeUsage(m)); 2243Node newArg = BuildSoftCast(VisitExprAsScalar(value), Helper.GetModelTypeUsage(property));
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (13)
332newNode = CreateNullConstantNode(md.Helper.GetModelTypeUsage(property)); 426typeIdType = md.Helper.GetModelTypeUsage(typeInfo.RootType.DiscriminatorMap.DiscriminatorProperty); 473if (!TypeUtils.IsStructuredType(md.Helper.GetModelTypeUsage(m))) 479TypeInfo nestedTypeInfo = m_typeInfo.GetTypeInfo(md.Helper.GetModelTypeUsage(m)); 1665SetOpVar newVar = m_command.CreateSetOpVar(md.Helper.GetModelTypeUsage(newProperty)); 1780Node arg = BuildSoftCast(inputs.Current, md.Helper.GetModelTypeUsage(p)); 2079Node caseNode = m_command.CreateNode(m_command.CreateCaseOp(md.Helper.GetModelTypeUsage(property)), caseChildren); 2466inputFieldValues.Insert(0, m_command.CreateNode(m_command.CreateInternalConstantOp(md.Helper.GetModelTypeUsage(outputTypeInfo.EntitySetIdProperty), entitySetId))); 2657InternalConstantOp entitySetIdOp = m_command.CreateInternalConstantOp(md.Helper.GetModelTypeUsage(entitySetIdProperty), entitySetId); 2665entitySetIdNode = CreateNullConstantNode(md.Helper.GetModelTypeUsage(entitySetIdProperty)); 2776if (TypeUtils.IsStructuredType(md.Helper.GetModelTypeUsage(opField))) 2779md.RowType nestedFlatType = m_typeInfo.GetTypeInfo(md.Helper.GetModelTypeUsage(opField)).FlattenedType; 2888var typeIdType = md.Helper.GetModelTypeUsage(typeInfo.TypeIdProperty);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (2)
779rootType.TypeIdType = md.Helper.GetModelTypeUsage(rootType.DiscriminatorMap.DiscriminatorProperty); 1108result = md.Helper.GetModelTypeUsage(simpleP.Property);