Ejemplo n.º 1
0
        public bool Equals(DBAlertRecipient toCompare)
        {
            if (toCompare == null)
            {
                return(false);
            }

            return(CompareFields(this, toCompare));
        }
Ejemplo n.º 2
0
 private static bool CompareFields(DBAlertRecipient a, DBAlertRecipient b)
 {
     if (object.ReferenceEquals(a, null) && object.ReferenceEquals(b, null))
     {
         return(true);
     }
     if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null))
     {
         return(false);
     }
     return(a.IdalertRecipient == b.IdalertRecipient &&
            a.NameRecipient == b.NameRecipient &&
            a.Alert_idalert == b.Alert_idalert &&
            a.PhoneNumber == b.PhoneNumber &&
            a.PhoneNumberType == b.PhoneNumberType &&
            a.Email == b.Email &&
            a.EmailType == b.EmailType);
 }