3 writes to RelationshipWrapper
System.Data.Entity (3)
System\Data\Objects\RelationshipEntry.cs (3)
446
RelationshipWrapper
= new RelationshipWrapper(RelationshipWrapper.AssociationSet, newKey);
450
RelationshipWrapper
= new RelationshipWrapper(RelationshipWrapper, 0, newKey);
455
RelationshipWrapper
= new RelationshipWrapper(RelationshipWrapper, 1, newKey);
40 references to RelationshipWrapper
System.Data.Entity (40)
System\Data\Objects\DataClasses\EntityReference.cs (1)
138
attachedKey = relationshipEntry.
RelationshipWrapper
.GetOtherEntityKey(ownerKey);
System\Data\Objects\EntityEntry.cs (12)
662
Debug.Assert(null != item.
RelationshipWrapper
, "null RelationshipWrapper");
664
Debug.Assert(EntityKey.Equals(item.
RelationshipWrapper
.Key0) || EntityKey.Equals(item.
RelationshipWrapper
.Key1), "entity key doesn't match");
680
Debug.Assert(EntityKey.Equals(current.
RelationshipWrapper
.Key0), "entity key didn't match");
686
Debug.Assert(EntityKey.Equals(current.
RelationshipWrapper
.Key1), "entity key didn't match");
707
Debug.Assert(!item.
RelationshipWrapper
.Equals(current.
RelationshipWrapper
), "same wrapper, different RelationshipEntry instances");
1413
AssociationEndMember endMember = relationshipEntry.
RelationshipWrapper
.GetAssociationEndMember(EntityKey);
1424
return _cache.GetEntityEntry(relationshipEntry.
RelationshipWrapper
.GetOtherEntityKey(this.EntityKey));
2556
EntityKey targetKey = relationshipEntry.
RelationshipWrapper
.GetOtherEntityKey(EntityKey);
2579
EntityKey targetKey = relationshipEntry.
RelationshipWrapper
.GetOtherEntityKey(EntityKey);
2590
AssociationEndMember targetMember = relationshipEntry.
RelationshipWrapper
.GetAssociationEndMember(targetKey);
System\Data\Objects\ObjectStateManager.cs (15)
1190
if (targetKey == relationshipEntry.
RelationshipWrapper
.GetOtherEntityKey(sourceKey))
1381
ReadOnlyMetadataCollection<AssociationEndMember> endMembers = relationshipEntry.
RelationshipWrapper
.AssociationEndMembers;
1383
UnloadReferenceRelatedEnds(cache, relationshipEntry, relationshipEntry.
RelationshipWrapper
.GetEntityKey(0), endMembers[1].Name);
1384
UnloadReferenceRelatedEnds(cache, relationshipEntry, relationshipEntry.
RelationshipWrapper
.GetEntityKey(1), endMembers[0].Name);
1560
AddRelationshipEndToLookup(relationship.
RelationshipWrapper
.Key0, relationship);
1561
if (!relationship.
RelationshipWrapper
.Key0.Equals(relationship.
RelationshipWrapper
.Key1))
1563
AddRelationshipEndToLookup(relationship.
RelationshipWrapper
.Key1, relationship);
1585
DeleteRelationshipEndFromLookup(relationship.
RelationshipWrapper
.Key0, relationship);
1586
if (!relationship.
RelationshipWrapper
.Key0.Equals(relationship.
RelationshipWrapper
.Key1))
1588
DeleteRelationshipEndFromLookup(relationship.
RelationshipWrapper
.Key1, relationship);
2757
Debug.Assert(null != entry.
RelationshipWrapper
, "null RelationshipWrapper");
2788
dictionaryToAdd.Add(entry.
RelationshipWrapper
, entry);
2889
bool result = dictionaryContainingEntry.Remove(entry.
RelationshipWrapper
);
System\Data\Objects\RelationshipEntry.cs (12)
22
internal EntityKey Key0 { get { return
RelationshipWrapper
.Key0; } }
23
internal EntityKey Key1 { get { return
RelationshipWrapper
.Key1; } }
232
if (this.
RelationshipWrapper
.Key0 == this.Key0)
236
this.
RelationshipWrapper
.AssociationSet.ElementType.FullName,
237
this.
RelationshipWrapper
.AssociationEndMembers[1].Name,
242
Debug.Assert(this.
RelationshipWrapper
.Key0 == this.Key1, "invalid relationship");
245
this.
RelationshipWrapper
.AssociationSet.ElementType.FullName,
246
this.
RelationshipWrapper
.AssociationEndMembers[0].Name,
446
RelationshipWrapper = new RelationshipWrapper(
RelationshipWrapper
.AssociationSet, newKey);
450
RelationshipWrapper = new RelationshipWrapper(
RelationshipWrapper
, 0, newKey);
455
RelationshipWrapper = new RelationshipWrapper(
RelationshipWrapper
, 1, newKey);
543
AssociationEndMember targetMember = this.
RelationshipWrapper
.GetAssociationEndMember(targetKey);