/// <summary> /// Indicates whether the current <see cref="LettmplttypeRecord" /> instance is equal to another <see cref="LettmplttypeRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="LettmplttypeRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(LettmplttypeRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify()); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.Desc.TrimOrNullify() == that.Desc.TrimOrNullify()); result = result && (this.Levels == that.Levels); result = result && (this.Type == that.Type); result = result && (this.ProcName.TrimOrNullify() == that.ProcName.TrimOrNullify()); result = result && (this.Equivalent.TrimOrNullify() == that.Equivalent.TrimOrNullify()); result = result && (this.DefaultPrType.TrimOrNullify() == that.DefaultPrType.TrimOrNullify()); result = result && (this.Url.TrimOrNullify() == that.Url.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="LettmplttypeRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="LettmplttypeRecord" /> object instance. /// </returns> public LettmplttypeRecord Clone() { LettmplttypeRecord record = new LettmplttypeRecord(); record.Id = this.Id; record.Lock = this.Lock; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.RcvDate = this.RcvDate; record.RcvFrom = this.RcvFrom; record.Name = this.Name; record.Desc = this.Desc; record.Levels = this.Levels; record.Type = this.Type; record.ProcName = this.ProcName; record.Equivalent = this.Equivalent; record.DefaultPrType = this.DefaultPrType; record.Url = this.Url; return(record); }