/// <summary> /// Indicates whether the current <see cref="SaqFilterRecord" /> instance is equal to another <see cref="SaqFilterRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="SaqFilterRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(SaqFilterRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.DisplayOrder == that.DisplayOrder); result = result && (this.Display == that.Display); result = result && (this.TablePrefix.TrimOrNullify() == that.TablePrefix.TrimOrNullify()); result = result && (this.TableDesc.TrimOrNullify() == that.TableDesc.TrimOrNullify()); result = result && (this.ColumnName.TrimOrNullify() == that.ColumnName.TrimOrNullify()); result = result && (this.ColumnType.TrimOrNullify() == that.ColumnType.TrimOrNullify()); result = result && (this.ColumnLength == that.ColumnLength); result = result && (this.ColumnDesc.TrimOrNullify() == that.ColumnDesc.TrimOrNullify()); result = result && (this.CodeLookup == that.CodeLookup); result = result && (this.CodeHeader.TrimOrNullify() == that.CodeHeader.TrimOrNullify()); result = result && (this.CodeVal == that.CodeVal); result = result && (this.IdInLookup == that.IdInLookup); result = result && (this.DefaultOperand.TrimOrNullify() == that.DefaultOperand.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="SaqFilterRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="SaqFilterRecord" /> object instance. /// </returns> public SaqFilterRecord Clone() { SaqFilterRecord record = new SaqFilterRecord(); record.Id = this.Id; record.AddBy = this.AddBy; record.AddDate = this.AddDate; record.ModBy = this.ModBy; record.ModDate = this.ModDate; record.DisplayOrder = this.DisplayOrder; record.Display = this.Display; record.TablePrefix = this.TablePrefix; record.TableDesc = this.TableDesc; record.ColumnName = this.ColumnName; record.ColumnType = this.ColumnType; record.ColumnLength = this.ColumnLength; record.ColumnDesc = this.ColumnDesc; record.CodeLookup = this.CodeLookup; record.CodeHeader = this.CodeHeader; record.CodeVal = this.CodeVal; record.IdInLookup = this.IdInLookup; record.DefaultOperand = this.DefaultOperand; return(record); }