4 writes to Key0
System.Data.Entity (4)
System\Data\Objects\RelationshipWrapper.cs (4)
28this.Key0 = key; 39this.Key0 = (0 == ordinal) ? key : wrapper.Key0; 70Key0 = key0; 77Key0 = key1;
18 references to Key0
System.Data.Entity (18)
System\Data\Objects\EntityEntry.cs (2)
664Debug.Assert(EntityKey.Equals(item.RelationshipWrapper.Key0) || EntityKey.Equals(item.RelationshipWrapper.Key1), "entity key doesn't match"); 680Debug.Assert(EntityKey.Equals(current.RelationshipWrapper.Key0), "entity key didn't match");
System\Data\Objects\ObjectStateManager.cs (4)
1560AddRelationshipEndToLookup(relationship.RelationshipWrapper.Key0, relationship); 1561if (!relationship.RelationshipWrapper.Key0.Equals(relationship.RelationshipWrapper.Key1)) 1585DeleteRelationshipEndFromLookup(relationship.RelationshipWrapper.Key0, relationship); 1586if (!relationship.RelationshipWrapper.Key0.Equals(relationship.RelationshipWrapper.Key1))
System\Data\Objects\RelationshipEntry.cs (3)
22internal EntityKey Key0 { get { return RelationshipWrapper.Key0; } } 232if (this.RelationshipWrapper.Key0 == this.Key0) 242Debug.Assert(this.RelationshipWrapper.Key0 == this.Key1, "invalid relationship");
System\Data\Objects\RelationshipWrapper.cs (9)
39this.Key0 = (0 == ordinal) ? key : wrapper.Key0; 89Debug.Assert(Key0 == key || Key1 == key, "didn't match a key"); 90return AssociationEndMembers[(Key0 != key) ? 1 : 0]; 95return ((Key0 == key) ? Key1 : ((Key1 == key) ? Key0 : null)); 103return Key0; 113return this.AssociationSet.Name.GetHashCode() ^ (this.Key0.GetHashCode() + this.Key1.GetHashCode()); 126this.Key0.Equals(wrapper.Key0) &&