92 references to AssociationSetEnds
System.Data.Entity (68)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (3)
129
assocSet.
AssociationSetEnds
.Any(se => se.EntitySet == targetSet)
157
var dependentSetEnd = relSet.
AssociationSetEnds
[fkConstraint.ToRole.Name];
162
var principalSetEnd = relSet.
AssociationSetEnds
[fkConstraint.FromRole.Name];
System\Data\Common\Internal\Materialization\Shaper.cs (2)
471
if (((AssociationSet)entitySetBase).
AssociationSetEnds
[sourceEndName].EntitySet == entitySet)
710
Debug.Assert(associationSet.
AssociationSetEnds
[sourceMember.Name].EntitySet == sourceEntitySet);
System\Data\Common\Utils\MetadataHelper.cs (5)
236
return associationSet.
AssociationSetEnds
[endMember.Name].EntitySet;
259
foreach (AssociationSetEnd end in associationSet.
AssociationSetEnds
)
290
AssociationSetEnd otherEnd = end.ParentAssociationSet.
AssociationSetEnds
.Where(
576
foreach (AssociationSetEnd associationEnd in associationSet.
AssociationSetEnds
)
631
EntitySet es = assocSet.
AssociationSetEnds
[endName].EntitySet;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
85
foreach (var end in associationSet.
AssociationSetEnds
)
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
294
associationSetMappings = associationSetMappings.Where(associationSetMap => ((associationSetMap.Set as AssociationSet).
AssociationSetEnds
.Any(associationSetEnd => associationSetEnd.EntitySet == edmEntitySet)));
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
292
EntitySet dependentSet = aSet.
AssociationSetEnds
[rc.ToRole.Name].EntitySet;
293
EntitySet principalSet = aSet.
AssociationSetEnds
[rc.FromRole.Name].EntitySet;
System\Data\Mapping\StorageMappingItemLoader.cs (5)
692
foreach (AssociationSetEnd end in associationSet.
AssociationSetEnds
)
713
foreach (AssociationSetEnd end in associationSet.
AssociationSetEnds
)
4024
!associationSet.
AssociationSetEnds
.TryGetValue(fromRole, false, out fromEnd))
4036
!associationSet.
AssociationSetEnds
.TryGetValue(toRole, false, out toEnd))
4099
!m_associationSet.
AssociationSetEnds
.TryGetValue(role, false, out end))
System\Data\Mapping\StorageModificationFunctionMapping.cs (3)
215
if ((assocationSet.
AssociationSetEnds
[constraint.ToRole.Name].EntitySet == entitySet) &&
218
ends.Add(assocationSet.
AssociationSetEnds
[constraint.FromRole.Name]);
306
this.AssociationSetEnd = associationSetNavigation.
AssociationSetEnds
[this.Members[1].Name];
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (1)
58
var ends = associationSet.
AssociationSetEnds
;
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (3)
88
var ends = associationSet.
AssociationSetEnds
;
154
var ends = associationSet.
AssociationSetEnds
;
330
foreach (var end in associationSet.
AssociationSetEnds
)
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (3)
101
var ends = associationSet.
AssociationSetEnds
;
113
source = associationSet.
AssociationSetEnds
[constraint.ToRole.Name];
114
target = associationSet.
AssociationSetEnds
[constraint.FromRole.Name];
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
260
EntitySet principalSet = associationSet.
AssociationSetEnds
[constraint.FromRole.Name].EntitySet;
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (1)
456
yield return pkFkInfo.Item1.
AssociationSetEnds
.Where(ase => ase.Name == pkFkInfo.Item2.ToRole.Name).Single().EntitySet;
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
60
foreach (AssociationSetEnd end in assocSet.
AssociationSetEnds
)
119
BoolExpression inRoleExpression1 = BoolExpression.CreateLiteral(new RoleBoolean(assocSet.
AssociationSetEnds
[0]), domainMap);
120
BoolExpression inRoleExpression2 = BoolExpression.CreateLiteral(new RoleBoolean(assocSet.
AssociationSetEnds
[1]), domainMap);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (2)
341
foreach (var association in associations.Where(association => association.
AssociationSetEnds
.Any(end => ( end.CorrespondingAssociationEndMember.RelationshipMultiplicity == RelationshipMultiplicity.One &&
482
foreach (AssociationSetEnd relationEnd in relationshipSet.
AssociationSetEnds
)
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (1)
195
AssociationSetEnd setEnd = ((AssociationSet)RightExtent).
AssociationSetEnds
[ends.First().Name];
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (1)
103
foreach (AssociationSetEnd end in relationshipSet.
AssociationSetEnds
)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (4)
102
foreach (AssociationSetEnd end in relationSet.
AssociationSetEnds
)
438
RoleBoolean endRoleBoolean = new RoleBoolean(assocSet.
AssociationSetEnds
[endMember.Name]);
580
foreach (AssociationSetEnd relationEnd in relationSet.
AssociationSetEnds
)
800
foreach (AssociationSetEnd setEnd in set.
AssociationSetEnds
)
System\Data\Mapping\ViewValidator.cs (1)
320
AssociationSetEnd setEnd = associationSet.
AssociationSetEnds
[i];
System\Data\Metadata\Edm\AssociationSet.cs (2)
78
this.
AssociationSetEnds
.Source.SetReadOnly();
88
this.
AssociationSetEnds
.Source.Add(associationSetEnd);
System\Data\Objects\DataClasses\EntityCollection.cs (1)
198
singleEntitySet = ((AssociationSet)this.RelationshipSet).
AssociationSetEnds
[this.ToEndMember.Name].EntitySet;
System\Data\Objects\DataClasses\EntityReference.cs (4)
477
EntitySet principalEntitySet = ((AssociationSet)RelationshipSet).
AssociationSetEnds
[ToEndMember.Name].EntitySet;
480
EntitySet dependentEntitySet = ((AssociationSet)RelationshipSet).
AssociationSetEnds
[FromEndProperty.Name].EntitySet;
578
EntitySet dependentEntitySet = ((AssociationSet)RelationshipSet).
AssociationSetEnds
[FromEndProperty.Name].EntitySet;
660
EntitySet dependentEntitySet = ((AssociationSet)RelationshipSet).
AssociationSetEnds
[FromEndProperty.Name].EntitySet;
System\Data\Objects\DataClasses\RelatedEnd.cs (9)
393
EntitySet ownerEntitySet = ((AssociationSet)_relationshipSet).
AssociationSetEnds
[_fromEndProperty.Name].EntitySet;
394
EntitySet targetEntitySet = ((AssociationSet)_relationshipSet).
AssociationSetEnds
[_toEndProperty.Name].EntitySet;
777
EntitySet targetEntitySet = ((AssociationSet)RelationshipSet).
AssociationSetEnds
[TargetRoleName].EntitySet;
1106
if ((((AssociationSet)_relationshipSet).
AssociationSetEnds
[_navigation.To] != null) &&
1107
(((AssociationSet)_relationshipSet).
AssociationSetEnds
[_navigation.To].EntitySet != set))
2141
entitySet = associationSet.
AssociationSetEnds
[associationEndMember.Name].EntitySet;
2350
associationset.
AssociationSetEnds
[_navigation.From].EntitySet != entitySet &&
2351
associationset.
AssociationSetEnds
[_navigation.From].EntitySet.ElementType == entitySet.ElementType)
2435
if (((AssociationSet)entitySetBase).
AssociationSetEnds
[_navigation.From].EntitySet == entitySet)
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
848
Debug.Assert(association.
AssociationSetEnds
[sourceEndName].EntitySet == entitySet, "AssociationSetEnd does have the matching EntitySet");
System\Data\Objects\EntityEntry.cs (2)
3843
var setEnds = associationSet.
AssociationSetEnds
;
3844
Debug.Assert(associationSet.
AssociationSetEnds
.Count == 2, "Expected an association set with only two ends.");
System\Data\Objects\ObjectStateManager.cs (2)
3306
EntitySet entitySet = associationSet.
AssociationSetEnds
[0].EntitySet;
3313
return associationSet.
AssociationSetEnds
[1].EntitySet;
System\Data\Query\PlanCompiler\PreProcessor.cs (2)
682
foreach (AssociationSetEnd e in associationSet.
AssociationSetEnds
)
1555
rs.
AssociationSetEnds
[relProperty.FromEnd.Identity].EntitySet.EdmEquals(entitySet))
System\Data\SqlClient\SqlProviderUtilities.cs (2)
197
var principalEnd = associationSet.
AssociationSetEnds
[constraint.FromRole.Name];
198
var dependentEnd = associationSet.
AssociationSetEnds
[constraint.ToRole.Name];
System.Data.Entity.Design (12)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
715
foreach (AssociationSetEnd end in associationSet.
AssociationSetEnds
)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (6)
141
Debug.Assert(set.
AssociationSetEnds
.Count == 2, "Associations are assumed to have two ends");
143
if (set.
AssociationSetEnds
[0].CorrespondingAssociationEndMember == constraint.FromRole)
158
return set.
AssociationSetEnds
[fromEndIndex];
162
return set.
AssociationSetEnds
[toEndIndex];
385
foreach (AssociationSetEnd storeEnd in store.
AssociationSetEnds
)
415
return store.
AssociationSetEnds
.GetValue(constraint.ToRole.Name, false);
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (5)
614
EntitySet end0Set = set.
AssociationSetEnds
[0].EntitySet;
615
EntitySet end1Set = set.
AssociationSetEnds
[1].EntitySet;
638
foreach (AssociationSetEnd end in storeAssociationSet.
AssociationSetEnds
)
651
foreach (AssociationSetEnd end in storeAssociationSet.
AssociationSetEnds
)
886
foreach(AssociationSetEnd storeEnd in storeAssociationSet.
AssociationSetEnds
)
System.Data.Services (9)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (9)
132
AssociationSetEnd setEnd = associationSet.
AssociationSetEnds
[sourceNavigationProperty.FromEndMember.Name];
139
setEnd = associationSet.
AssociationSetEnds
[sourceNavigationProperty.ToEndMember.Name];
1098
foreach (AssociationSetEnd end in associationSet.
AssociationSetEnds
)
1768
for (int i = 0; i < associationSet.
AssociationSetEnds
.Count; i++)
1771
xmlWriter.WriteAttributeString(XmlConstants.Role, associationSet.
AssociationSetEnds
[i].Name);
1772
xmlWriter.WriteAttributeString(XmlConstants.EntitySet, associationSet.
AssociationSetEnds
[i].EntitySet.Name);
1775
WriteUserDefinedAnnotations(xmlWriter, associationSet.
AssociationSetEnds
[i].MetadataProperties, false /*writeCustomElements*/);
1776
WriteUserDefinedAnnotations(xmlWriter, associationSet.
AssociationSetEnds
[i].MetadataProperties, true /*writeCustomElements*/);
2683
foreach (AssociationSetEnd end in associationSet.
AssociationSetEnds
)
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (3)
758
Debug.Assert(associationSet.
AssociationSetEnds
.Count == 2, "non binary association?");
759
AssociationSetEnd firstEnd = associationSet.
AssociationSetEnds
[0];
760
AssociationSetEnd secondEnd = associationSet.
AssociationSetEnds
[1];