Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
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);
                          }
                   });
Posted
Comments
[no name] 6-Jun-14 7:28am    
Very nice code dump. Did you have some sort of a question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900