コード例 #1
0
        /// <summary>
        ///     Retrieves the principal end of this association
        /// </summary>
        /// <param name="association">The association.</param>
        /// <returns>The principal end.</returns>
        public static AssociationEndMember GetPrincipalEnd(this AssociationType association)
        {
            var dependentEnd = association.GetDependentEnd();

            if (dependentEnd != null)
            {
                return(association.GetOtherEnd(dependentEnd));
            }
            return(null);
        }