/// <summary>
        /// Sets the members of the class instance with data from the data layer framework.
        /// </summary>
        internal virtual void SetMembers(ref PaymentAdjustmentBase data)
        {
            // store a reference to this as an Entity class instance.
            Entity thisent = data as Entity;

            // make sure to always call up to the base
            base.SetMembers(ref thisent);


            // assigns the Id data to the class member
            _id = data._id;
            // assigns the LoanApplicationId data to the class member
            _loanapplicationid          = data._loanapplicationid;
            _loanapplicationid_assigned = data._loanapplicationid_assigned;
            // assigns the FirstPaymentAdjustmentMonths data to the class member
            _firstpaymentadjustmentmonths        = data._firstpaymentadjustmentmonths;
            _firstpaymentadjustmentmonths_isnull = data._firstpaymentadjustmentmonths_isnull;
            // assigns the Amount data to the class member
            _amount        = data._amount;
            _amount_isnull = data._amount_isnull;
            // assigns the CalculationType data to the class member
            _calculationtype          = data._calculationtype;
            _calculationtype_assigned = data._calculationtype_assigned;
            // assigns the DurationMonths data to the class member
            _durationmonths        = data._durationmonths;
            _durationmonths_isnull = data._durationmonths_isnull;
            // assigns the Percent data to the class member
            _percent        = data._percent;
            _percent_isnull = data._percent_isnull;
            // assigns the PeriodicCapAmount data to the class member
            _periodiccapamount        = data._periodiccapamount;
            _periodiccapamount_isnull = data._periodiccapamount_isnull;
            // assigns the PeriodicCapPercent data to the class member
            _periodiccappercent        = data._periodiccappercent;
            _periodiccappercent_isnull = data._periodiccappercent_isnull;
            // assigns the PeriodNumber data to the class member
            _periodnumber = data._periodnumber;
            // assigns the SubsequentPaymentAdjustmentMonths data to the class member
            _subsequentpaymentadjustmentmonths        = data._subsequentpaymentadjustmentmonths;
            _subsequentpaymentadjustmentmonths_isnull = data._subsequentpaymentadjustmentmonths_isnull;


            RecalculateChecksum();
        }
 /// <summary>
 /// Removes an object instance from the current collection set of items.
 /// </summary>
 public virtual void Remove(PaymentAdjustmentBase paymentAdjustmentBase)
 {
     InnerRemove(paymentAdjustmentBase);
 }
 /// <summary>
 /// Adds a new object instance to the current collection set.
 /// </summary>
 public virtual int Add(PaymentAdjustmentBase paymentAdjustmentBase)
 {
     return(InnerAdd(paymentAdjustmentBase));
 }