53 references to AssociationEndMembers
System.Data.Entity (48)
System\Data\Common\Internal\Materialization\Shaper.cs (1)
423
foreach (var end in oSpaceAssociation.
AssociationEndMembers
)
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
115
foreach (var endMember in associationType.
AssociationEndMembers
)
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (1)
757
foreach (AssociationEndMember edmEnd in association.
AssociationEndMembers
)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
322
foreach (AssociationEndMember end in aSet.ElementType.
AssociationEndMembers
)
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
165
var endMetadata = associationSet.ElementType.
AssociationEndMembers
;
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (1)
399
foreach (AssociationEndMember endMember in associationType.
AssociationEndMembers
)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (1)
54
foreach (var endMember in assocSet.ElementType.
AssociationEndMembers
)
System\Data\Mapping\ViewGeneration\Validation\ExtentKey.cs (1)
83
foreach (AssociationEndMember endMember in relationType.
AssociationEndMembers
)
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (2)
141
oneToOneForeignKeyAssociationsForThisWrapper = oneToOneForeignKeyAssociationsForThisWrapper.Where(it => (it.
AssociationEndMembers
.All(endMember => endMember.RelationshipMultiplicity == RelationshipMultiplicity.One)));
143
oneToOneForeignKeyAssociationsForThisWrapper = oneToOneForeignKeyAssociationsForThisWrapper.Where(it => (it.
AssociationEndMembers
.All(endMember => entityTypes.Contains(endMember.GetEntityType()))));
System\Data\Metadata\Helper.cs (5)
141
return ((AssociationType)edmType).
AssociationEndMembers
;
157
if (associationType.
AssociationEndMembers
.Any( it =>
161
return associationType.
AssociationEndMembers
.SingleOrDefault(it =>
167
else if (associationType.
AssociationEndMembers
.Any(it =>
171
return associationType.
AssociationEndMembers
.SingleOrDefault(it =>
System\Data\Metadata\TypeHelpers.cs (1)
500
return (IBaseList<EdmMember>)((AssociationType)edmType).
AssociationEndMembers
;
System\Data\Objects\DataClasses\RelatedEnd.cs (3)
2361
foreach (AssociationEndMember relationEnd in ((AssociationType)_relationMetadata).
AssociationEndMembers
) //Only Association relationship is supported
2607
if (associationType.
AssociationEndMembers
.TryGetValue(sourceRoleName, false, out sourceEnd))
2614
if (associationType.
AssociationEndMembers
.TryGetValue(targetRoleName, false, out targetEnd))
System\Data\Objects\DataClasses\RelationshipManager.cs (12)
463
Debug.Assert(relationship.
AssociationEndMembers
.Count == 2, "Only 2-way relationships are currently supported");
469
targetEnd = relationship.
AssociationEndMembers
[1];
473
targetEnd = relationship.
AssociationEndMembers
[0];
488
sourceEnd = relationship.
AssociationEndMembers
[0];
742
EntityType end2EntityType = ((AssociationType)assocSet.ElementType).
AssociationEndMembers
[1].GetEntityType();
745
yield return ((AssociationType)assocSet.ElementType).
AssociationEndMembers
[0];
748
EntityType end1EntityType = ((AssociationType)assocSet.ElementType).
AssociationEndMembers
[0].GetEntityType();
751
yield return ((AssociationType)assocSet.ElementType).
AssociationEndMembers
[1];
783
RefType referenceType = association.
AssociationEndMembers
[0].TypeUsage.EdmType as RefType;
787
yield return association.
AssociationEndMembers
[1];
790
referenceType = association.
AssociationEndMembers
[1].TypeUsage.EdmType as RefType;
794
yield return association.
AssociationEndMembers
[0];
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (2)
201
Debug.Assert(relationship.
AssociationEndMembers
.Contains(property.ToEndMember.Name), "Association does not declare member referenced by Navigation property?");
202
return relationship.
AssociationEndMembers
[property.ToEndMember.Name];
System\Data\Objects\Internal\ObjectSpanRewriter.cs (3)
608
if (2 == association.
AssociationEndMembers
.Count)
610
AssociationEndMember end0 = association.
AssociationEndMembers
[0];
611
AssociationEndMember end1 = association.
AssociationEndMembers
[1];
System\Data\Objects\RelationshipEntry.cs (3)
373
Debug.Assert(associationSet.ElementType.
AssociationEndMembers
[0].Name == associationMember.Name ||
374
associationSet.ElementType.
AssociationEndMembers
[1].Name == associationMember.Name,
383
if (_relationshipWrapper.AssociationSet.ElementType.
AssociationEndMembers
[0].Name == associationMember.Name)
System\Data\Objects\RelationshipWrapper.cs (6)
59
Debug.Assert(extent.ElementType.
AssociationEndMembers
.Count == 2, "only 2 ends are supported");
67
if (extent.ElementType.
AssociationEndMembers
[0].Name == role0)
69
Debug.Assert(extent.ElementType.
AssociationEndMembers
[1].Name == role1, "a)roleAndKey1 Name differs");
75
Debug.Assert(extent.ElementType.
AssociationEndMembers
[0].Name == role1, "b)roleAndKey1 Name differs");
76
Debug.Assert(extent.ElementType.
AssociationEndMembers
[1].Name == role0, "b)roleAndKey0 Name differs");
84
get { return this.AssociationSet.ElementType.
AssociationEndMembers
; }
System\Data\Query\InternalTrees\RelPropertyHelper.cs (3)
160
if (associationType.
AssociationEndMembers
.Count != 2)
165
AssociationEndMember end0 = associationType.
AssociationEndMembers
[0];
166
AssociationEndMember end1 = associationType.
AssociationEndMembers
[1];
System.Data.Entity.Design (3)
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (3)
33
Debug.Assert(Item.
AssociationEndMembers
.Count == 2, "must have exactly two ends");
35
AssociationEndMember end1 = Item.
AssociationEndMembers
[0];
36
AssociationEndMember end2 = Item.
AssociationEndMembers
[1];
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2618
foreach (AssociationEndMember member in associationType.
AssociationEndMembers
)
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (1)
29
Debug.Assert((base.Item as AssociationType).
AssociationEndMembers
.Count == 2, "must have exactly two ends");