internal void SetBO(Indico.BusinessObjects.FabricCodeDetailsViewBO obj)
 {
     // set this Indico.BusinessObjects.FabricCodeDetailsViewBO properties
     this.Fabric         = obj.Fabric;
     this.Code           = obj.Code;
     this.Name           = obj.Name;
     this.Material       = obj.Material;
     this.GSM            = obj.GSM;
     this.SupplierID     = obj.SupplierID;
     this.Supplier       = obj.Supplier;
     this.CountryID      = obj.CountryID;
     this.Country        = obj.Country;
     this.DenierCount    = obj.DenierCount;
     this.Filaments      = obj.Filaments;
     this.NickName       = obj.NickName;
     this.SerialOrder    = obj.SerialOrder;
     this.FabricPrice    = obj.FabricPrice;
     this.LandedCurrency = obj.LandedCurrency;
     this.FabricWidth    = obj.FabricWidth;
     this.UnitID         = obj.UnitID;
     this.Unit           = obj.Unit;
     this.FabricColorID  = obj.FabricColorID;
     this.FabricColor    = obj.FabricColor;
     this.ColorCode      = obj.ColorCode;
     this.IsActive       = obj.IsActive;
     this.IsPure         = obj.IsPure;
     this.IsLiningFabric = obj.IsLiningFabric;
     this.IsCostSheetWherethisFabricCode            = obj.IsCostSheetWherethisFabricCode;
     this.IsPriceWherethisFabricCode                = obj.IsPriceWherethisFabricCode;
     this.IsQuoteWherethisFabricCode                = obj.IsQuoteWherethisFabricCode;
     this.IsVisualLayoutWherethisFabricCode         = obj.IsVisualLayoutWherethisFabricCode;
     this.IsPatternSupportFabricWherethisFabricCode = obj.IsPatternSupportFabricWherethisFabricCode;
 }
        private static List <Indico.BusinessObjects.FabricCodeDetailsViewBO> IQueryableToList(IQueryable <Indico.DAL.FabricCodeDetailsView> oQuery)
        {
            List <Indico.DAL.FabricCodeDetailsView> oList = oQuery.ToList();
            List <Indico.BusinessObjects.FabricCodeDetailsViewBO> rList = new List <Indico.BusinessObjects.FabricCodeDetailsViewBO>(oList.Count);

            foreach (Indico.DAL.FabricCodeDetailsView o in oList)
            {
                Indico.BusinessObjects.FabricCodeDetailsViewBO obj = new Indico.BusinessObjects.FabricCodeDetailsViewBO(o);
                rList.Add(obj);
            }
            return(rList);
        }
        /// <summary>
        /// Deserializes Indico.BusinessObjects.FabricCodeDetailsViewBO object from an XML representation
        /// </summary>
        /// <param name="strXML">a XML string serialized representation</param>
        public Indico.BusinessObjects.FabricCodeDetailsViewBO DeserializeObject(string strXML)
        {
            Indico.BusinessObjects.FabricCodeDetailsViewBO 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.FabricCodeDetailsViewBO)x.Deserialize(objStream);
            objStream.Close();
            return(objTemp);
        }