private static List <Indico.BusinessObjects.DistributorClientAddressDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.DistributorClientAddressDetailsView> oQuery) { List <Indico.DAL.DistributorClientAddressDetailsView> oList = oQuery.ToList(); List <Indico.BusinessObjects.DistributorClientAddressDetailsViewBO> rList = new List <Indico.BusinessObjects.DistributorClientAddressDetailsViewBO>(oList.Count); foreach (Indico.DAL.DistributorClientAddressDetailsView o in oList) { Indico.BusinessObjects.DistributorClientAddressDetailsViewBO obj = new Indico.BusinessObjects.DistributorClientAddressDetailsViewBO(o); rList.Add(obj); } return(rList); }
/// <summary> /// Deserializes Indico.BusinessObjects.DistributorClientAddressDetailsViewBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.DistributorClientAddressDetailsViewBO DeserializeObject(string strXML) { Indico.BusinessObjects.DistributorClientAddressDetailsViewBO objTemp = null; System.Xml.XmlDocument objXML = new System.Xml.XmlDocument(); objXML.LoadXml(strXML); System.Text.Encoding encoding = System.Text.Encoding.UTF8; System.IO.MemoryStream objStream = new System.IO.MemoryStream(); byte[] b = encoding.GetBytes(objXML.OuterXml); objStream.Write(b, 0, (int)b.Length); objStream.Position = 0; System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(this.GetType()); objTemp = (Indico.BusinessObjects.DistributorClientAddressDetailsViewBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }
internal void SetBO(Indico.BusinessObjects.DistributorClientAddressDetailsViewBO obj) { // set this Indico.BusinessObjects.DistributorClientAddressDetailsViewBO properties this.ID = obj.ID; this.Address = obj.Address; this.Suburb = obj.Suburb; this.PostCode = obj.PostCode; this.CountryID = obj.CountryID; this.Country = obj.Country; this.ContactName = obj.ContactName; this.EmailAddress = obj.EmailAddress; this.ContactPhone = obj.ContactPhone; this.CompanyName = obj.CompanyName; this.AddressType = obj.AddressType; this.State = obj.State; this.Port = obj.Port; this.PortID = obj.PortID; this.ClientID = obj.ClientID; this.Client = obj.Client; }