var st1 = from p in context.pic_product where p.product_id == ert.key select new { p.part_number, p.part_description, }; var st = st1.SingleOrDefault(); if (st1 != null) { var attr = new AttributeDTO { AttrName = st.part_number, temp = st.part_description }; lst1.Add(attr); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)