internal override void SetMembers(ref MISMO.Entities.PropertyBase data) { // make a call to the base to set the members for the base structures. base.SetMembers(ref data); // now since this object is set...we can get instance of the other data elements. // get the legal descriptions _legaldescs = this.GetLegalDescriptions(); // get the parsed address if it exists MISMO.BusinessObjects.ParsedStreetAddresses parsedaddys = this.GetParsedStreetAddresses(); if (parsedaddys != null && parsedaddys.Count > 0) { _parsedaddress = parsedaddys[0]; } // get the valuations into the right object model MISMO.BusinessObjects.Valuations vals = this.GetValuations(); MISMO.Entities.ValuationBase valbase = null; MISMO.BusinessObjects.AUS.Valuation val = null; if (vals != null && vals.Count > 0) { for (int i = 0, j = vals.Count; i < j; i++) { val = new AUS.Valuation(); valbase = vals[i]; val.SetMembers(ref valbase); _valuations.Add(val); } } // update the checksum this.RecalculateChecksum(); }
internal override void SetMembers(ref MISMO.Entities.PropertyBase data) { // make a call to the base to set the members for the base structures. base.SetMembers (ref data); // now since this object is set...we can get instance of the other data elements. // get the legal descriptions _legaldescs = this.GetLegalDescriptions(); // get the parsed address if it exists MISMO.BusinessObjects.ParsedStreetAddresses parsedaddys = this.GetParsedStreetAddresses(); if (parsedaddys != null && parsedaddys.Count > 0) _parsedaddress = parsedaddys[0]; // get the valuations into the right object model MISMO.BusinessObjects.Valuations vals = this.GetValuations(); MISMO.Entities.ValuationBase valbase = null; MISMO.BusinessObjects.AUS.Valuation val = null; if (vals != null && vals.Count > 0) { for(int i = 0, j = vals.Count; i<j; i++) { val = new AUS.Valuation(); valbase = vals[i]; val.SetMembers(ref valbase); _valuations.Add(val); } } // update the checksum this.RecalculateChecksum(); }