src/Misc/EFTools/EntityDesignModel/Entity/Association.cs
/// <summary>
///     Gets the AssociationEnd that is not pointing to the given EntityType. This method should not be
///     called for self-associations.
/// </summary>
/// <param name="oneEnd"></param>
/// <returns></returns>
Gets the AssociationEnd that is not pointing to the given EntityType. This method should not be
called for self-associations.
Gets the AssociationEnd that is not pointing to the given EntityType . This method should not be called for self - associations .
internal AssociationEnd GetOtherEnd(EntityType entityType)
        {
            Debug.Assert(
                !IsSelfAssociation,
                "GetOtherEnd() will not work correctly for self associations as both ends point to the same entity type");
            AssociationEnd otherEnd = null;
            if (End1.Type.Target == entityType)
            {
                otherEnd = End2;
            }
            else if (End2.Type.Target == entityType)
            {
                otherEnd = End1;
            }
            return otherEnd;
        }
internal AssociationEnd GetOtherEnd ( EntityType entityType ) { Debug . Assert ( ! IsSelfAssociation , " " ) ; AssociationEnd otherEnd = null ; if ( End1 . Type . Target == entityType ) { otherEnd = End2 ; } else if ( End2 . Type . Target == entityType ) { otherEnd = End1 ; } return otherEnd ; }
Gets the AssociationEnd that is not pointing to the given EntityType.
Gets the AssociationEnd that is not pointing to the given EntityType .
None
entityType
EntityType
oneEnd
None