/// <summary>
        /// Sets the members of the class instance with data from the data layer framework.
        /// </summary>
        internal virtual void SetMembers(ref AffordableLendingBase 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 LoanApplicationId data to the class member
            _loanapplicationid          = data._loanapplicationid;
            _loanapplicationid_assigned = data._loanapplicationid_assigned;
            // assigns the FNMCommunityLendingProductName data to the class member
            _fnmcommunitylendingproductname = data._fnmcommunitylendingproductname;
            // assigns the FNMCommunityLendingProductTypeOtherDescription data to the class member
            _fnmcommunitylendingproducttypeotherdescription = data._fnmcommunitylendingproducttypeotherdescription;
            // assigns the FNMCommunitySecondsIndicator data to the class member
            _fnmcommunitysecondsindicator          = data._fnmcommunitysecondsindicator;
            _fnmcommunitysecondsindicator_assigned = data._fnmcommunitysecondsindicator_assigned;
            // assigns the FNMNeighborsMortgageEligibilityIndicator data to the class member
            _fnmneighborsmortgageeligibilityindicator          = data._fnmneighborsmortgageeligibilityindicator;
            _fnmneighborsmortgageeligibilityindicator_assigned = data._fnmneighborsmortgageeligibilityindicator_assigned;
            // assigns the FREAffordableProgramIdentifier data to the class member
            _freaffordableprogramidentifier = data._freaffordableprogramidentifier;
            // assigns the HUDIncomeLimitAdjustmentFactor data to the class member
            _hudincomelimitadjustmentfactor        = data._hudincomelimitadjustmentfactor;
            _hudincomelimitadjustmentfactor_isnull = data._hudincomelimitadjustmentfactor_isnull;
            // assigns the HUDLendingIncomeLimitAmount data to the class member
            _hudlendingincomelimitamount        = data._hudlendingincomelimitamount;
            _hudlendingincomelimitamount_isnull = data._hudlendingincomelimitamount_isnull;
            // assigns the HUDMedianIncomeAmount data to the class member
            _hudmedianincomeamount        = data._hudmedianincomeamount;
            _hudmedianincomeamount_isnull = data._hudmedianincomeamount_isnull;
            // assigns the MSAIdentifier data to the class member
            _msaidentifier = data._msaidentifier;
            // assigns the FNMCommunityLendingProductType data to the class member
            _fnmcommunitylendingproducttype        = data._fnmcommunitylendingproducttype;
            _fnmcommunitylendingproducttype_isnull = data._fnmcommunitylendingproducttype_isnull;


            RecalculateChecksum();
        }
 /// <summary>
 /// Removes an object instance from the current collection set of items.
 /// </summary>
 public virtual void Remove(AffordableLendingBase affordableLendingBase)
 {
     InnerRemove(affordableLendingBase);
 }
 /// <summary>
 /// Adds a new object instance to the current collection set.
 /// </summary>
 public virtual int Add(AffordableLendingBase affordableLendingBase)
 {
     return(InnerAdd(affordableLendingBase));
 }
 /// <summary>
 /// Removes an object instance from the current collection set of items.
 /// </summary>
 public virtual void Remove(AffordableLendingBase affordableLendingBase)
 {
     InnerRemove(affordableLendingBase);
 }
 /// <summary>
 /// Adds a new object instance to the current collection set.
 /// </summary>
 public virtual int Add(AffordableLendingBase affordableLendingBase)
 {
     return InnerAdd(affordableLendingBase);
 }
        /// <summary>
        /// Sets the members of the class instance with data from the data layer framework.
        /// </summary>
        internal virtual void SetMembers(ref AffordableLendingBase 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 LoanApplicationId data to the class member
            _loanapplicationid = data._loanapplicationid;
            _loanapplicationid_assigned = data._loanapplicationid_assigned;
            // assigns the FNMCommunityLendingProductName data to the class member
            _fnmcommunitylendingproductname = data._fnmcommunitylendingproductname;
            // assigns the FNMCommunityLendingProductTypeOtherDescription data to the class member
            _fnmcommunitylendingproducttypeotherdescription = data._fnmcommunitylendingproducttypeotherdescription;
            // assigns the FNMCommunitySecondsIndicator data to the class member
            _fnmcommunitysecondsindicator = data._fnmcommunitysecondsindicator;
            _fnmcommunitysecondsindicator_assigned = data._fnmcommunitysecondsindicator_assigned;
            // assigns the FNMNeighborsMortgageEligibilityIndicator data to the class member
            _fnmneighborsmortgageeligibilityindicator = data._fnmneighborsmortgageeligibilityindicator;
            _fnmneighborsmortgageeligibilityindicator_assigned = data._fnmneighborsmortgageeligibilityindicator_assigned;
            // assigns the FREAffordableProgramIdentifier data to the class member
            _freaffordableprogramidentifier = data._freaffordableprogramidentifier;
            // assigns the HUDIncomeLimitAdjustmentFactor data to the class member
            _hudincomelimitadjustmentfactor = data._hudincomelimitadjustmentfactor;
            _hudincomelimitadjustmentfactor_isnull = data._hudincomelimitadjustmentfactor_isnull;
            // assigns the HUDLendingIncomeLimitAmount data to the class member
            _hudlendingincomelimitamount = data._hudlendingincomelimitamount;
            _hudlendingincomelimitamount_isnull = data._hudlendingincomelimitamount_isnull;
            // assigns the HUDMedianIncomeAmount data to the class member
            _hudmedianincomeamount = data._hudmedianincomeamount;
            _hudmedianincomeamount_isnull = data._hudmedianincomeamount_isnull;
            // assigns the MSAIdentifier data to the class member
            _msaidentifier = data._msaidentifier;
            // assigns the FNMCommunityLendingProductType data to the class member
            _fnmcommunitylendingproducttype = data._fnmcommunitylendingproducttype;
            _fnmcommunitylendingproducttype_isnull = data._fnmcommunitylendingproducttype_isnull;

            RecalculateChecksum();
        }