public override void RemoveById(CommitteeXrefRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spDeleteCommitteePerson");

            this.MapParameterIn(command, "@PA_USER_LOGIN_ID", "dev");
            this.MapParametersIn(command, record, true);
            this.Execute(command);
            this.MapParametersOut(command, record);
        }
        public override void Modify(CommitteeXrefRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateCommittee_Xref");

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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.ComId.TrimOrNullify() == that.ComId.TrimOrNullify());
            result = result && (this.TableName.TrimOrNullify() == that.TableName.TrimOrNullify());
            result = result && (this.RecordId.TrimOrNullify() == that.RecordId.TrimOrNullify());
            result = result && (this.Disabled == that.Disabled);
            result = result && (this.Role.TrimOrNullify() == that.Role.TrimOrNullify());
            result = result && (this.Date == that.Date);
            return(result);
        }
        /// <summary>
        ///     Creates a new <see cref="CommitteeXrefRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="CommitteeXrefRecord" /> object instance.
        /// </returns>
        public CommitteeXrefRecord Clone()
        {
            CommitteeXrefRecord record = new CommitteeXrefRecord();

            record.Id        = this.Id;
            record.AddBy     = this.AddBy;
            record.AddDate   = this.AddDate;
            record.ModBy     = this.ModBy;
            record.ModDate   = this.ModDate;
            record.RcvFrom   = this.RcvFrom;
            record.RcvDate   = this.RcvDate;
            record.ComId     = this.ComId;
            record.TableName = this.TableName;
            record.RecordId  = this.RecordId;
            record.Disabled  = this.Disabled;
            record.Role      = this.Role;
            record.Date      = this.Date;
            return(record);
        }