Ejemplo n.º 1
0
        public override bool Equals(AbstractEntity other)
        {
            if (other == null)
            {
                return(false);
            }

            if (!ObjectContext.GetObjectType(GetType()).Equals(ObjectContext.GetObjectType(other.GetType())))
            {
                return(false);
            }

            DoubleKeyEntity <TKeyA, TKeyB> castedOther = (DoubleKeyEntity <TKeyA, TKeyB>)other;

            return(!castedOther.IsEmptyKey() && KeyA.Equals(castedOther.KeyA) && KeyB.Equals(castedOther.KeyB));
        }