/// <summary>
        ///     Creates a new <see cref="ListMemberRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="ListMemberRecord" /> object instance.
        /// </returns>
        public ListMemberRecord Clone()
        {
            ListMemberRecord record = new ListMemberRecord();

            record.Id        = this.Id;
            record.Lock      = this.Lock;
            record.AddBy     = this.AddBy;
            record.AddDate   = this.AddDate;
            record.ModBy     = this.ModBy;
            record.ModDate   = this.ModDate;
            record.RcvDate   = this.RcvDate;
            record.RcvFrom   = this.RcvFrom;
            record.ListId    = this.ListId;
            record.PnId      = this.PnId;
            record.Title     = this.Title;
            record.Userchar1 = this.Userchar1;
            record.Userchar2 = this.Userchar2;
            record.Userchar3 = this.Userchar3;
            record.Userchar4 = this.Userchar4;
            record.TermsRead = this.TermsRead;
            record.TableName = this.TableName;
            record.RecordId  = this.RecordId;
            record.Disable   = this.Disable;
            return(record);
        }
Esempio n. 2
0
        public override void Modify(ListMemberRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateListMember");

            this.MapParameterIn(command, "@PA_USER_LOGIN_ID", "dev");
            this.MapParametersIn(command, record, true);
            this.Execute(command);
            this.MapParametersOut(command, record);
        }
        /// <summary>
        ///     Indicates whether the current <see cref="ListMemberRecord" /> instance is equal to another <see cref="ListMemberRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="ListMemberRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(ListMemberRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.ListId.TrimOrNullify() == that.ListId.TrimOrNullify());
            result = result && (this.PnId.TrimOrNullify() == that.PnId.TrimOrNullify());
            result = result && (this.Title.TrimOrNullify() == that.Title.TrimOrNullify());
            result = result && (this.Userchar1.TrimOrNullify() == that.Userchar1.TrimOrNullify());
            result = result && (this.Userchar2.TrimOrNullify() == that.Userchar2.TrimOrNullify());
            result = result && (this.Userchar3.TrimOrNullify() == that.Userchar3.TrimOrNullify());
            result = result && (this.Userchar4.TrimOrNullify() == that.Userchar4.TrimOrNullify());
            result = result && (this.TermsRead == that.TermsRead);
            result = result && (this.TableName.TrimOrNullify() == that.TableName.TrimOrNullify());
            result = result && (this.RecordId.TrimOrNullify() == that.RecordId.TrimOrNullify());
            result = result && (this.Disable == that.Disable);
            return(result);
        }