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

            record.Id                  = this.Id;
            record.AddBy               = this.AddBy;
            record.AddDate             = this.AddDate;
            record.ModBy               = this.ModBy;
            record.ModDate             = this.ModDate;
            record.SyssId              = this.SyssId;
            record.DisplayOptionType   = this.DisplayOptionType;
            record.DisplayOrder        = this.DisplayOrder;
            record.FieldName           = this.FieldName;
            record.DefaultLabel        = this.DefaultLabel;
            record.Label               = this.Label;
            record.FieldType           = this.FieldType;
            record.WhereClauseOperator = this.WhereClauseOperator;
            record.Visible             = this.Visible;
            record.VisibleCondition    = this.VisibleCondition;
            record.DefaultValue        = this.DefaultValue;
            record.CodeList            = this.CodeList;
            record.Data                = this.Data;
            record.WhereClauseOverride = this.WhereClauseOverride;
            record.Permissions         = this.Permissions;
            return(record);
        }
        /// <summary>
        ///     Indicates whether the current <see cref="SystemSearchesParameterFieldsRecord" /> instance is equal to another <see cref="SystemSearchesParameterFieldsRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="SystemSearchesParameterFieldsRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(SystemSearchesParameterFieldsRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.SyssId == that.SyssId);
            result = result && (this.DisplayOptionType == that.DisplayOptionType);
            result = result && (this.DisplayOrder == that.DisplayOrder);
            result = result && (this.FieldName.TrimOrNullify() == that.FieldName.TrimOrNullify());
            result = result && (this.DefaultLabel.TrimOrNullify() == that.DefaultLabel.TrimOrNullify());
            result = result && (this.Label.TrimOrNullify() == that.Label.TrimOrNullify());
            result = result && (this.FieldType.TrimOrNullify() == that.FieldType.TrimOrNullify());
            result = result && (this.WhereClauseOperator.TrimOrNullify() == that.WhereClauseOperator.TrimOrNullify());
            result = result && (this.Visible == that.Visible);
            result = result && (this.VisibleCondition.TrimOrNullify() == that.VisibleCondition.TrimOrNullify());
            result = result && (this.DefaultValue.TrimOrNullify() == that.DefaultValue.TrimOrNullify());
            result = result && (this.CodeList.TrimOrNullify() == that.CodeList.TrimOrNullify());
            result = result && (this.Data.TrimOrNullify() == that.Data.TrimOrNullify());
            result = result && (this.WhereClauseOverride.TrimOrNullify() == that.WhereClauseOverride.TrimOrNullify());
            result = result && (this.Permissions.TrimOrNullify() == that.Permissions.TrimOrNullify());
            return(result);
        }