src/Misc/EFTools/EntityDesignModel/UpdateFromDatabase/AssociationEndIdentity.cs
/// <summary>
///     Returns true if this end is for the "principal" end of the association.
///     This is determined if none of the columns mapped as part of the association
///     set mapping are included as part of the key's mapped columns.
/// </summary>
/// <returns></returns>
Returns true if this end is for the "principal" end of the association.
This is determined if none of the columns mapped as part of the association
set mapping are included as part of the key's mapped columns.
Returns true if this end is for the " principal " end of the association . This is determined if none of the columns mapped as part of the association set mapping are included as part of the key ' s mapped columns .
internal bool IsPrincipalEnd()
        {
            foreach (var pmi in _propertyIdentities)
            {
                foreach (var associationMappedColumn in pmi.DependentColumns)
                {
                    if (pmi.PrincipalColumns.Contains(associationMappedColumn))
                    {
                        return false;
                    }
                }
            }
            return true;
        }
internal bool IsPrincipalEnd ( ) { foreach ( var pmi in _propertyIdentities ) { foreach ( var associationMappedColumn in pmi . DependentColumns ) { if ( pmi . PrincipalColumns . Contains ( associationMappedColumn ) ) { return false ; } } } return true ; }
Returns true if this end is for the "principal" end of the association.
Returns true if this end is for the " principal " end of the association .
None