private static ContactSupplement PopulateFromDBDetailsObject(ContactSupplementDetails obj) { ContactSupplement objNew = new ContactSupplement(); objNew.ContactNo = obj.ContactNo; objNew.Birthday = obj.Birthday; objNew.PartnerName = obj.PartnerName; objNew.PartnerBirthday = obj.PartnerBirthday; objNew.Anniversary = obj.Anniversary; objNew.NumberOfChildren = obj.NumberOfChildren; objNew.ChildName1 = obj.ChildName1; objNew.ChildBirthday1 = obj.ChildBirthday1; objNew.ChildName2 = obj.ChildName2; objNew.ChildBirthday2 = obj.ChildBirthday2; objNew.ChildName3 = obj.ChildName3; objNew.ChildBirthday3 = obj.ChildBirthday3; objNew.PersonalCellphone = obj.PersonalCellphone; objNew.FavouriteSport = obj.FavouriteSport; objNew.FavouriteTeam = obj.FavouriteTeam; objNew.Hobbies = obj.Hobbies; objNew.Inactive = obj.Inactive; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; objNew.GenderNo = obj.GenderNo; objNew.MaritalStatusNo = obj.MaritalStatusNo; objNew.ChildGenderNo1 = obj.ChildGenderNo1; objNew.ChildGenderNo2 = obj.ChildGenderNo2; objNew.ChildGenderNo3 = obj.ChildGenderNo3; objNew.MaritalStatusName = obj.MaritalStatusName; return(objNew); }
/// <summary> /// Get /// Calls [usp_select_ContactSupplement] /// </summary> public static ContactSupplement Get(System.Int32?contactNo) { Rebound.GlobalTrader.DAL.ContactSupplementDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.ContactSupplement.Get(contactNo); if (objDetails == null) { return(null); } else { ContactSupplement obj = new ContactSupplement(); obj.ContactNo = objDetails.ContactNo; obj.Birthday = objDetails.Birthday; obj.PartnerName = objDetails.PartnerName; obj.PartnerBirthday = objDetails.PartnerBirthday; obj.Anniversary = objDetails.Anniversary; obj.NumberOfChildren = objDetails.NumberOfChildren; obj.ChildName1 = objDetails.ChildName1; obj.ChildBirthday1 = objDetails.ChildBirthday1; obj.ChildName2 = objDetails.ChildName2; obj.ChildBirthday2 = objDetails.ChildBirthday2; obj.ChildName3 = objDetails.ChildName3; obj.ChildBirthday3 = objDetails.ChildBirthday3; obj.PersonalCellphone = objDetails.PersonalCellphone; obj.FavouriteSport = objDetails.FavouriteSport; obj.FavouriteTeam = objDetails.FavouriteTeam; obj.Hobbies = objDetails.Hobbies; obj.Inactive = objDetails.Inactive; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.GenderNo = objDetails.GenderNo; obj.MaritalStatusNo = objDetails.MaritalStatusNo; obj.ChildGenderNo1 = objDetails.ChildGenderNo1; obj.ChildGenderNo2 = objDetails.ChildGenderNo2; obj.ChildGenderNo3 = objDetails.ChildGenderNo3; obj.MaritalStatusName = objDetails.MaritalStatusName; objDetails = null; return(obj); } }