/// <summary> /// Creates a new <see cref="ArticleRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="ArticleRecord" /> object instance. /// </returns> public ArticleRecord Clone() { ArticleRecord record = new ArticleRecord(); record.Id = this.Id; record.Type = this.Type; record.State = this.State; record.AddDate = this.AddDate; record.ModDate = this.ModDate; record.RcvDate = this.RcvDate; record.AddBy = this.AddBy; record.ModBy = this.ModBy; record.RcvFrom = this.RcvFrom; record.Name = this.Name; record.Notes = this.Notes; record.NotesHtml = this.NotesHtml; record.Group = this.Group; record.Keywords = this.Keywords; record.Category = this.Category; record.Summary = this.Summary; record.SummaryHtml = this.SummaryHtml; record.Web = this.Web; record.Image = this.Image; record.Featured = this.Featured; record.PublishDate = this.PublishDate; record.PublishProleId = this.PublishProleId; record.PsId = this.PsId; record.Area = this.Area; return(record); }
/// <summary> /// Indicates whether the current <see cref="ArticleRecord" /> instance is equal to another <see cref="ArticleRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="ArticleRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(ArticleRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.Type == that.Type); result = result && (this.State == that.State); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify()); result = result && (this.NotesHtml.TrimOrNullify() == that.NotesHtml.TrimOrNullify()); result = result && (this.Group.TrimOrNullify() == that.Group.TrimOrNullify()); result = result && (this.Keywords.TrimOrNullify() == that.Keywords.TrimOrNullify()); result = result && (this.Category.TrimOrNullify() == that.Category.TrimOrNullify()); result = result && (this.Summary.TrimOrNullify() == that.Summary.TrimOrNullify()); result = result && (this.SummaryHtml.TrimOrNullify() == that.SummaryHtml.TrimOrNullify()); result = result && (this.Web == that.Web); result = result && (this.Image.TrimOrNullify() == that.Image.TrimOrNullify()); result = result && (this.Featured == that.Featured); result = result && (this.PublishDate == that.PublishDate); result = result && (this.PublishProleId.TrimOrNullify() == that.PublishProleId.TrimOrNullify()); result = result && (this.PsId == that.PsId); result = result && (this.Area.TrimOrNullify() == that.Area.TrimOrNullify()); return(result); }