Ejemplo n.º 1
0
        /// <summary>
        /// Sets the members of the class instance with data from the data layer framework.
        /// </summary>
        internal virtual void SetMembers(ref ResidenceBase 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 BorrowerId data to the class member
            _borrowerid        = data._borrowerid;
            _borrowerid_isnull = data._borrowerid_isnull;
            // assigns the StreetAddress data to the class member
            _streetaddress = data._streetaddress;
            // assigns the City data to the class member
            _city = data._city;
            // assigns the State data to the class member
            _state = data._state;
            // assigns the PostalCode data to the class member
            _postalcode = data._postalcode;
            // assigns the Country data to the class member
            _country = data._country;
            // assigns the BorrowerResidencyDurationMonths data to the class member
            _borrowerresidencydurationmonths        = data._borrowerresidencydurationmonths;
            _borrowerresidencydurationmonths_isnull = data._borrowerresidencydurationmonths_isnull;
            // assigns the BorrowerResidencyDurationYears data to the class member
            _borrowerresidencydurationyears        = data._borrowerresidencydurationyears;
            _borrowerresidencydurationyears_isnull = data._borrowerresidencydurationyears_isnull;
            // assigns the BorrowerResidencyBasisType data to the class member
            _borrowerresidencybasistype        = data._borrowerresidencybasistype;
            _borrowerresidencybasistype_isnull = data._borrowerresidencybasistype_isnull;
            // assigns the BorrowerResidencyType data to the class member
            _borrowerresidencytype        = data._borrowerresidencytype;
            _borrowerresidencytype_isnull = data._borrowerresidencytype_isnull;


            RecalculateChecksum();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Removes an object instance from the current collection set of items.
 /// </summary>
 public virtual void Remove(ResidenceBase residenceBase)
 {
     InnerRemove(residenceBase);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds a new object instance to the current collection set.
 /// </summary>
 public virtual int Add(ResidenceBase residenceBase)
 {
     return(InnerAdd(residenceBase));
 }