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

            result = result && (this.Id == that.Id);
            result = result && (this.Title.TrimOrNullify() == that.Title.TrimOrNullify());
            result = result && (this.Create.TrimOrNullify() == that.Create.TrimOrNullify());
            result = result && (this.Read.TrimOrNullify() == that.Read.TrimOrNullify());
            result = result && (this.Update.TrimOrNullify() == that.Update.TrimOrNullify());
            result = result && (this.Delete.TrimOrNullify() == that.Delete.TrimOrNullify());
            result = result && (this.ImpPrId == that.ImpPrId);
            return(result);
        }
Exemple #2
0
        /// <summary>
        ///     Creates a new <see cref="PortalRoleRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="PortalRoleRecord" /> object instance.
        /// </returns>
        public PortalRoleRecord Clone()
        {
            PortalRoleRecord record = new PortalRoleRecord();

            record.Id      = this.Id;
            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.Title   = this.Title;
            record.Create  = this.Create;
            record.Read    = this.Read;
            record.Update  = this.Update;
            record.Delete  = this.Delete;
            record.ImpPrId = this.ImpPrId;
            return(record);
        }