internal void SetBO(Indico.BusinessObjects.HSCodeDetailsBO obj) { // set this Indico.BusinessObjects.HSCodeDetailsBO properties this.HSCode = obj.HSCode; this.ItemSubCategoryID = obj.ItemSubCategoryID; this.ItemSubCategory = obj.ItemSubCategory; this.GenderID = obj.GenderID; this.Gender = obj.Gender; this.Code = obj.Code; }
private static List <Indico.BusinessObjects.HSCodeDetailsBO> IQueryableToList(IQueryable <Indico.DAL.HSCodeDetails> oQuery) { List <Indico.DAL.HSCodeDetails> oList = oQuery.ToList(); List <Indico.BusinessObjects.HSCodeDetailsBO> rList = new List <Indico.BusinessObjects.HSCodeDetailsBO>(oList.Count); foreach (Indico.DAL.HSCodeDetails o in oList) { Indico.BusinessObjects.HSCodeDetailsBO obj = new Indico.BusinessObjects.HSCodeDetailsBO(o); rList.Add(obj); } return(rList); }
/// <summary> /// Deserializes Indico.BusinessObjects.HSCodeDetailsBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.HSCodeDetailsBO DeserializeObject(string strXML) { Indico.BusinessObjects.HSCodeDetailsBO 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.HSCodeDetailsBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }