/// <summary> /// Indicates whether the current <see cref="SystemmenusRecord" /> instance is equal to another <see cref="SystemmenusRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="SystemmenusRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(SystemmenusRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.Url.TrimOrNullify() == that.Url.TrimOrNullify()); result = result && (this.Group.TrimOrNullify() == that.Group.TrimOrNullify()); result = result && (this.UserId.TrimOrNullify() == that.UserId.TrimOrNullify()); result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify()); result = result && (this.System == that.System); result = result && (this.Icon.TrimOrNullify() == that.Icon.TrimOrNullify()); result = result && (this.RelativePath.TrimOrNullify() == that.RelativePath.TrimOrNullify()); result = result && (this.SmenuId == that.SmenuId); result = result && (this.NameId.TrimOrNullify() == that.NameId.TrimOrNullify()); result = result && (this.NameRef.TrimOrNullify() == that.NameRef.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="SystemmenusRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="SystemmenusRecord" /> object instance. /// </returns> public SystemmenusRecord Clone() { SystemmenusRecord record = new SystemmenusRecord(); record.Id = this.Id; record.Name = this.Name; record.Url = this.Url; record.Group = this.Group; record.UserId = this.UserId; record.Type = this.Type; record.System = this.System; record.Icon = this.Icon; record.RelativePath = this.RelativePath; record.SmenuId = this.SmenuId; record.NameId = this.NameId; record.NameRef = this.NameRef; return(record); }