/// <summary>
        ///     Creates a new <see cref="AttachmentDataRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="AttachmentDataRecord" /> object instance.
        /// </returns>
        public AttachmentDataRecord Clone()
        {
            AttachmentDataRecord record = new AttachmentDataRecord();

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

            result = result && (this.Id == that.Id);
            result = result && (this.AttId.TrimOrNullify() == that.AttId.TrimOrNullify());
            result = result && (this.VersionNo == that.VersionNo);
            result = result && (this.Binary == that.Binary);
            result = result && (this.Text.TrimOrNullify() == that.Text.TrimOrNullify());
            return(result);
        }