1 write to ElementType
System.Data.Entity (1)
System\Data\Metadata\Edm\EntitySetBase.cs (1)
66
this.
ElementType
= entityType;
75 references to ElementType
System.Data.Entity (72)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
812
return ArgumentValidation.CreateCollectionResultType(entitySet.
ElementType
);
1933
Debug.Assert(entitySet.
ElementType
!= null, "EntitySetBase constructor allowed null container?");
1935
if(!CheckDataSpace(entitySet.
ElementType
))
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
710
Dump(e.Target.
ElementType
, "TargetElementType");
System\Data\Common\EntityRecordInfo.cs (2)
101
!object.ReferenceEquals(RecordType.EdmType, entitySet.
ElementType
) &&
102
!entitySet.
ElementType
.IsBaseTypeOf(RecordType.EdmType))
System\Data\Common\Internal\Materialization\Shaper.cs (1)
469
if ((EdmType)entitySetBase.
ElementType
== associationType)
System\Data\Common\Utils\MetadataHelper.cs (1)
628
if (Object.ReferenceEquals(extent.
ElementType
, associationType))
System\Data\EntityKey.cs (12)
216
_keyNames = entitySet.
ElementType
.KeyMemberNames; // using EntitySetBase avoids an (EntityType) cast that EntitySet encoure
236
_keyNames = entitySet.
ElementType
.KeyMemberNames; // using EntitySetBase avoids an (EntityType) cast that EntitySet encoure
723
if (((EntitySetBase)entitySet).
ElementType
.KeyMembers.Count != numKeyMembers)
743
EdmMember singletonKeyMember = ((EntitySetBase)entitySet).
ElementType
.KeyMembers[0];
757
EdmMember keyMember = ((EntitySetBase)entitySet).
ElementType
.KeyMembers[i];
942
int numExpectedKeyValues = ((EntitySetBase)entitySet).
ElementType
.KeyMembers.Count;
943
keyNames = ((EntitySetBase)entitySet).
ElementType
.KeyMemberNames;
1005
ReadOnlyMetadataCollection<EdmMember> keyMembers = ((EntitySetBase)entitySet).
ElementType
.KeyMembers;
1054
EdmMember keyField = ((EntitySetBase)entitySet).
ElementType
.KeyMembers[i];
1164
Debug.Assert(entitySet.
ElementType
.KeyMembers.Count == 1, "For a singleton key, the number of key fields must be exactly 1.");
1172
Debug.Assert(entitySet.
ElementType
.KeyMembers.Count > 1, "For a composite key, the number of key fields should be greater than 1.");
1173
Debug.Assert(entitySet.
ElementType
.KeyMembers.Count == _compositeKeyValues.Length, "Incorrect number of values specified to composite key.");
System\Data\Mapping\StorageEntitySetMapping.cs (2)
144
Debug.Assert(modificationFunctionMapping.EntityType.Equals(this.Set.
ElementType
) ||
145
Helper.IsSubtypeOf(modificationFunctionMapping.EntityType, this.Set.
ElementType
),
System\Data\Mapping\StorageMappingItemCollection.cs (1)
801
setMapping.Set.
ElementType
,
System\Data\Mapping\StorageMappingItemLoader.cs (7)
900
Set<EdmType> unmappedTypes = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(setMapping.Set.
ElementType
, EdmItemCollection, false /*includeAbstractTypes*/));
1040
EntityType rootEntityType = (EntityType)entitySetMapping.Set.
ElementType
;
1300
EntityType rootEntityType = (EntityType)setMapping.Set.
ElementType
;
1332
if (includeSubtypes && setMapping.Set.
ElementType
.EdmEquals(entityType))
2561
if ((!(associationSetMapping.Set.
ElementType
.Equals(associationType))))
2564
associationSetMapping.Set.
ElementType
.FullName, associationSetMapping.Set.Name),
3809
StorageModificationFunctionMapping mapping = new StorageModificationFunctionMapping(entitySet, entitySet.
ElementType
, m_function, parameters, rowsAffectedParameter, null);
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (1)
92
on end.CorrespondingAssociationEndMember.DeclaringType equals candidateEntry.EntitySet.
ElementType
System\Data\Mapping\Update\Internal\KeyManager.cs (1)
307
var keyMembers = addedEntry.EntitySet.
ElementType
.KeyMembers;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
1118
changeNode = new ChangeNode(TypeUsage.Create(extent.
ElementType
));
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
116
if ((queryResultType == null) || (!setMapping.Set.
ElementType
.IsAssignableFrom(queryResultType.TypeUsage.EdmType)))
302
bool ofTypeView = m_type != m_extent.
ElementType
;
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (1)
38
CreateVariableConstraintsRecursion(extent.
ElementType
, new MemberPath(extent), domainMap, edmItemCollection);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
470
EntityType entityType = (EntityType)Extent.
ElementType
;
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
245
if (thisExtent.
ElementType
.IsAssignableFrom(fromEndEntityType))
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (6)
226
return m_extent.
ElementType
;
287
EntityType entitySetType = m_extent.
ElementType
as EntityType;
348
identifiers.AddIdentifier(m_extent.
ElementType
.Name);
471
EdmType prevType = m_extent.
ElementType
;
558
extentPath.GetMembers(extentPath.Extent.
ElementType
, null /* isScalar */, null /* isConditional */, true /* isPartOfKey */, domainMap));
810
EntityTypeBase type = m_extent.
ElementType
;
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (1)
77
EntityType entityType = (EntityType)m_cellQuery.Extent.
ElementType
;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (1)
89
Set<EdmType> unmapepdTypesInExtent = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(m_viewgenContext.Extent.
ElementType
, m_viewgenContext.EdmItemCollection, false /*isAbstract*/));
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (4)
111
ExtentKey tableKey = ExtentKey.GetPrimaryKeyForEntityType(tablePrefix, (EntityType)table.
ElementType
);
115
cSetKey = ExtentKey.GetPrimaryKeyForEntityType(cSetPrefix, (EntityType)cSet.
ElementType
);
119
cSetKey = ExtentKey.GetKeyForRelationType(cSetPrefix, (AssociationType)cSet.
ElementType
);
159
ExtentKey tableKey = ExtentKey.GetPrimaryKeyForEntityType(tablePrefix, (EntityType)table.
ElementType
);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
251
EntityTypeBase extentType = m_extent.
ElementType
;
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (3)
357
foreach (EdmType type in MetadataHelper.GetTypeAndSubtypesOf(extent.
ElementType
, m_entityContainerMapping.StorageMappingItemCollection.EdmItemCollection, false /*includeAbstractTypes*/))
359
if (m_config.IsViewTracing && false == type.Equals(extent.
ElementType
))
369
queryRewriter = GenerateViewsForExtentAndType(extent.
ElementType
, context, identifiers, views, ViewGenMode.OfTypeViews);
System\Data\Metadata\Edm\EntitySet.cs (1)
61
return (EntityType)base.
ElementType
;
System\Data\Metadata\Edm\EntitySetBase.cs (1)
205
EntityTypeBase elementType =
ElementType
;
System\Data\Metadata\Edm\RelationshipSet.cs (1)
46
return (RelationshipType)base.
ElementType
;
System\Data\Metadata\MetadataWorkspace.cs (3)
1451
if (!entitySet.
ElementType
.IsAssignableFrom(entityType))
1456
throw EntityUtil.TypeNotInAssociationSet(entitySet.Name, entitySet.
ElementType
.FullName, entityType.FullName);
1460
throw EntityUtil.TypeNotInEntitySet(entitySet.Name, entitySet.
ElementType
.FullName, entityType.FullName);
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
2433
if ((EdmType)entitySetBase.
ElementType
== relationshipType)
System\Data\Objects\ObjectContext.cs (1)
1338
if (es.BuiltInTypeKind == BuiltInTypeKind.EntitySet && es.
ElementType
== entityEdmType)
System\Data\Query\InternalTrees\Command.cs (1)
320
return new TableMD(TypeUsage.Create(extent.
ElementType
), extent);
System\Data\Query\PlanCompiler\PreProcessor.cs (5)
314
TypeSemantics.IsSubTypeOf(entitySet.
ElementType
, typeFilter.IsOfType.EdmType))
332
EntityTypeBase requiredType = scanTableOp.Table.TableMetadata.Extent.
ElementType
;
422
rootEntityType = entitySet.
ElementType
;
585
if ((ofType != null) && !entitySet.
ElementType
.EdmEquals(ofType.EdmType))
2079
TypeUsage elementType = TypeUsage.Create(op.Table.TableMetadata.Extent.
ElementType
);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
350
md.EntityTypeBase rootType = GetRootType(set.
ElementType
);
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (3)
115
EntityType tableType = (EntityType)((DbScanExpression)tree.Target.Expression).Target.
ElementType
;
248
foreach (EdmMember keyMember in ((DbScanExpression)tree.Target.Expression).Target.
ElementType
.KeyMembers)
378
foreach (EdmMember keyMember in table.
ElementType
.KeyMembers)
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
692
targetSchemaNamespace = type.
ElementType
.NamespaceName;
System.Data.Services.Design (2)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
539
namespaceName = baseEntitySet.
ElementType
.NamespaceName;
847
x.
ElementType
== entityType))