2 writes to _relationshipSet
System.Data.Entity (2)
System\Data\Objects\DataClasses\RelatedEnd.cs (2)
2339
this.
_relationshipSet
= relationshipSet;
2460
this.
_relationshipSet
= null;
19 references to _relationshipSet
System.Data.Entity (19)
System\Data\Objects\DataClasses\RelatedEnd.cs (19)
248
return this.
_relationshipSet
;
381
Debug.Assert(
_relationshipSet
!= null, "If we are attached to a context, we should have a relationship set.");
390
Debug.Assert(
_relationshipSet
.BuiltInTypeKind == BuiltInTypeKind.AssociationSet, "Non-AssociationSet Relationship Set?");
393
EntitySet ownerEntitySet = ((AssociationSet)
_relationshipSet
).AssociationSetEnds[_fromEndProperty.Name].EntitySet;
394
EntitySet targetEntitySet = ((AssociationSet)
_relationshipSet
).AssociationSetEnds[_toEndProperty.Name].EntitySet;
513
sourceBuilder.Append(
_relationshipSet
.EntityContainer.Name);
515
sourceBuilder.Append(
_relationshipSet
.Name);
1103
Debug.Assert(
_relationshipSet
!= null,
1106
if ((((AssociationSet)
_relationshipSet
).AssociationSetEnds[_navigation.To] != null) &&
1107
(((AssociationSet)
_relationshipSet
).AssociationSetEnds[_navigation.To].EntitySet != set))
1109
throw EntityUtil.EntitySetIsNotValidForRelationship(set.EntityContainer.Name, set.Name, _navigation.To,
_relationshipSet
.EntityContainer.Name,
_relationshipSet
.Name);
1440
MarkRelationshipAsDeletedInObjectStateManager(wrappedEntity, _wrappedOwner,
_relationshipSet
, _navigation);
1765
RemoveRelationshipFromObjectStateManager(wrappedEntity, _wrappedOwner,
_relationshipSet
, _navigation);
1774
RemoveRelationshipFromObjectStateManager(wrappedEntity, _wrappedOwner,
_relationshipSet
, _navigation);
1785
return this._context.ObjectStateManager.FindRelationship(
_relationshipSet
,
2022
DetachRelationshipFromObjectStateManager(wrappedEntity, _wrappedOwner,
_relationshipSet
, _navigation);
2135
AssociationSet associationSet = (AssociationSet)
_relationshipSet
;
2160
new RelationshipWrapper((AssociationSet)
_relationshipSet
,