예제 #1
0
 // <summary>
 // Used during relationship fixup when the source end of the relationship is not
 // yet in the relationships list, and needs to be created
 // </summary>
 // <param name="navigation"> RelationshipNavigation to be set on new RelatedEnd </param>
 // <param name="relationshipManager"> RelationshipManager to use for creating the new end </param>
 // <returns> Reference to the new collection or reference on the other end of the relationship </returns>
 RelatedEnd IRelationshipFixer.CreateSourceEnd(RelationshipNavigation navigation, RelationshipManager relationshipManager)
 {
     return(relationshipManager.CreateRelatedEnd <TTargetEntity, TSourceEntity>(
                navigation, _targetRoleMultiplicity, _sourceRoleMultiplicity, /*existingRelatedEnd*/ null));
 }
예제 #2
0
 RelatedEnd IRelationshipFixer.CreateSourceEnd(
     RelationshipNavigation navigation,
     RelationshipManager relationshipManager)
 {
     return(relationshipManager.CreateRelatedEnd <TTargetEntity, TSourceEntity>(navigation, this._targetRoleMultiplicity, this._sourceRoleMultiplicity, (RelatedEnd)null));
 }