public virtual bool UpdateQty(int id, int ilosc)
        {
            CDN_demoEntities ent       = new CDN_demoEntities();
            ZZSPE_TWRXML_OBS plcRecord = ent.ZZSPE_TWRXML_OBS.Where(e => e.TWRXML_ID == id).First();

            plcRecord.TWRXML_ILOSC = ilosc;

            return(ent.SaveChanges() > 0);
        }
        public virtual bool Insert(SqlEntity e)
        {
            CDN_demoEntities ent = new CDN_demoEntities();

            var plcRecord = ent.Set <ZZSPE_TWRXML_OBS>();

            plcRecord.Add(new ZZSPE_TWRXML_OBS()
            {
                TWRXML_TWR_EAN = e.TWRXML_TWR_EAN, TWRXML_ILOSC = e.TWRXML_ILOSC
            });


            return(ent.SaveChanges() > 0);
        }