public bool Equals(DBAlertRecipient toCompare) { if (toCompare == null) { return(false); } return(CompareFields(this, toCompare)); }
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); }