private static List <Indico.BusinessObjects.IndimanPriceViewBO> IQueryableToList(IQueryable <Indico.DAL.IndimanPriceView> oQuery) { List <Indico.DAL.IndimanPriceView> oList = oQuery.ToList(); List <Indico.BusinessObjects.IndimanPriceViewBO> rList = new List <Indico.BusinessObjects.IndimanPriceViewBO>(oList.Count); foreach (Indico.DAL.IndimanPriceView o in oList) { Indico.BusinessObjects.IndimanPriceViewBO obj = new Indico.BusinessObjects.IndimanPriceViewBO(o); rList.Add(obj); } return(rList); }
internal void SetBO(Indico.BusinessObjects.IndimanPriceViewBO obj) { // set this Indico.BusinessObjects.IndimanPriceViewBO properties this.SportsCategory = obj.SportsCategory; this.ItemSubCategory = obj.ItemSubCategory; this.OtherCategories = obj.OtherCategories; this.PatternNumber = obj.PatternNumber; this.PatternDsc = obj.PatternDsc; this.FabricDsc = obj.FabricDsc; this.IndimanCost = obj.IndimanCost; this.ConvertionFactor = obj.ConvertionFactor; this.EnableForPriceList = obj.EnableForPriceList; }
/// <summary> /// Deserializes Indico.BusinessObjects.IndimanPriceViewBO object from an XML representation /// </summary> /// <param name="strXML">a XML string serialized representation</param> public Indico.BusinessObjects.IndimanPriceViewBO DeserializeObject(string strXML) { Indico.BusinessObjects.IndimanPriceViewBO 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.IndimanPriceViewBO)x.Deserialize(objStream); objStream.Close(); return(objTemp); }