/// <summary>
        ///     Indicates whether the current <see cref="CommunicationsRecord" /> instance is equal to another <see cref="CommunicationsRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="CommunicationsRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(CommunicationsRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.DeviceCode.TrimOrNullify() == that.DeviceCode.TrimOrNullify());
            result = result && (this.DiallingCode.TrimOrNullify() == that.DiallingCode.TrimOrNullify());
            result = result && (this.StdCode.TrimOrNullify() == that.StdCode.TrimOrNullify());
            result = result && (this.Extension.TrimOrNullify() == that.Extension.TrimOrNullify());
            result = result && (this.ExDirectory == that.ExDirectory);
            result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify());
            result = result && (this.ValidFrom == that.ValidFrom);
            result = result && (this.Active == that.Active);
            result = result && (this.Default == that.Default);
            result = result && (this.Preferred == that.Preferred);
            result = result && (this.DeviceValue.TrimOrNullify() == that.DeviceValue.TrimOrNullify());
            result = result && (this.DeviceFullValue.TrimOrNullify() == that.DeviceFullValue.TrimOrNullify());
            result = result && (this.AddId.TrimOrNullify() == that.AddId.TrimOrNullify());
            return(result);
        }
        /// <summary>
        ///     Creates a new <see cref="CommunicationsRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="CommunicationsRecord" /> object instance.
        /// </returns>
        public CommunicationsRecord Clone()
        {
            CommunicationsRecord record = new CommunicationsRecord();

            record.Id              = this.Id;
            record.AddDate         = this.AddDate;
            record.AddBy           = this.AddBy;
            record.ModDate         = this.ModDate;
            record.ModBy           = this.ModBy;
            record.DeviceCode      = this.DeviceCode;
            record.DiallingCode    = this.DiallingCode;
            record.StdCode         = this.StdCode;
            record.Extension       = this.Extension;
            record.ExDirectory     = this.ExDirectory;
            record.Notes           = this.Notes;
            record.ValidFrom       = this.ValidFrom;
            record.Active          = this.Active;
            record.Default         = this.Default;
            record.Preferred       = this.Preferred;
            record.DeviceValue     = this.DeviceValue;
            record.DeviceFullValue = this.DeviceFullValue;
            record.AddId           = this.AddId;
            return(record);
        }