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

            result = result && (this.Id == that.Id);
            result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify());
            result = result && (this.SysType == that.SysType);
            result = result && (this.PageTitle.TrimOrNullify() == that.PageTitle.TrimOrNullify());
            result = result && (this.SearchDisplayName.TrimOrNullify() == that.SearchDisplayName.TrimOrNullify());
            result = result && (this.DisplayOrder == that.DisplayOrder);
            result = result && (this.DbViewName.TrimOrNullify() == that.DbViewName.TrimOrNullify());
            result = result && (this.DbViewFields.TrimOrNullify() == that.DbViewFields.TrimOrNullify());
            result = result && (this.OrderBy.TrimOrNullify() == that.OrderBy.TrimOrNullify());
            result = result && (this.DoubleClickActionColumn == that.DoubleClickActionColumn);
            result = result && (this.DefaultSortColumn.TrimOrNullify() == that.DefaultSortColumn.TrimOrNullify());
            result = result && (this.BannerText.TrimOrNullify() == that.BannerText.TrimOrNullify());
            result = result && (this.ShowDropdown == that.ShowDropdown);
            result = result && (this.Autosearch == that.Autosearch);
            result = result && (this.HideParameterSection == that.HideParameterSection);
            result = result && (this.DefaultMaxResults == that.DefaultMaxResults);
            result = result && (this.CustomClientScript.TrimOrNullify() == that.CustomClientScript.TrimOrNullify());
            result = result && (this.Permissions.TrimOrNullify() == that.Permissions.TrimOrNullify());
            result = result && (this.ShowExportOption == that.ShowExportOption);
            result = result && (this.Multiselect == that.Multiselect);
            result = result && (this.SearchCustom.TrimOrNullify() == that.SearchCustom.TrimOrNullify());
            result = result && (this.DbStoredProc.TrimOrNullify() == that.DbStoredProc.TrimOrNullify());
            result = result && (this.UseStoredProc == that.UseStoredProc);
            result = result && (this.NewButton.TrimOrNullify() == that.NewButton.TrimOrNullify());
            result = result && (this.SaveJson.TrimOrNullify() == that.SaveJson.TrimOrNullify());
            return(result);
        }
        /// <summary>
        ///     Creates a new <see cref="SystemSearchesRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="SystemSearchesRecord" /> object instance.
        /// </returns>
        public SystemSearchesRecord Clone()
        {
            SystemSearchesRecord record = new SystemSearchesRecord();

            record.Id                      = this.Id;
            record.AddBy                   = this.AddBy;
            record.AddDate                 = this.AddDate;
            record.ModBy                   = this.ModBy;
            record.ModDate                 = this.ModDate;
            record.Type                    = this.Type;
            record.SysType                 = this.SysType;
            record.PageTitle               = this.PageTitle;
            record.SearchDisplayName       = this.SearchDisplayName;
            record.DisplayOrder            = this.DisplayOrder;
            record.DbViewName              = this.DbViewName;
            record.DbViewFields            = this.DbViewFields;
            record.OrderBy                 = this.OrderBy;
            record.DoubleClickActionColumn = this.DoubleClickActionColumn;
            record.DefaultSortColumn       = this.DefaultSortColumn;
            record.BannerText              = this.BannerText;
            record.ShowDropdown            = this.ShowDropdown;
            record.Autosearch              = this.Autosearch;
            record.HideParameterSection    = this.HideParameterSection;
            record.DefaultMaxResults       = this.DefaultMaxResults;
            record.CustomClientScript      = this.CustomClientScript;
            record.Permissions             = this.Permissions;
            record.ShowExportOption        = this.ShowExportOption;
            record.Multiselect             = this.Multiselect;
            record.SearchCustom            = this.SearchCustom;
            record.DbStoredProc            = this.DbStoredProc;
            record.UseStoredProc           = this.UseStoredProc;
            record.NewButton               = this.NewButton;
            record.SaveJson                = this.SaveJson;
            return(record);
        }