Beispiel #1
0
        /// <summary>
        ///     Indicates whether the current <see cref="LearningzonecategoriesRecord" /> instance is equal to another <see cref="LearningzonecategoriesRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="LearningzonecategoriesRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(LearningzonecategoriesRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.CategoryTitle.TrimOrNullify() == that.CategoryTitle.TrimOrNullify());
            result = result && (this.Description.TrimOrNullify() == that.Description.TrimOrNullify());
            result = result && (this.DescriptionHtml.TrimOrNullify() == that.DescriptionHtml.TrimOrNullify());
            return(result);
        }
Beispiel #2
0
        /// <summary>
        ///     Creates a new <see cref="LearningzonecategoriesRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="LearningzonecategoriesRecord" /> object instance.
        /// </returns>
        public LearningzonecategoriesRecord Clone()
        {
            LearningzonecategoriesRecord record = new LearningzonecategoriesRecord();

            record.Id              = this.Id;
            record.AddDate         = this.AddDate;
            record.AddBy           = this.AddBy;
            record.ModDate         = this.ModDate;
            record.ModBy           = this.ModBy;
            record.CategoryTitle   = this.CategoryTitle;
            record.Description     = this.Description;
            record.DescriptionHtml = this.DescriptionHtml;
            return(record);
        }