Linq to entity select items and give id

Posted by GodSmart on Stack Overflow See other posts from Stack Overflow or by GodSmart
Published on 2010-05-10T11:27:02Z Indexed on 2010/05/10 11:34 UTC
Read the original article Hit count: 125

Filed under:

I have a table example you can see below

ID Name         Value

3  NameOne      ValueOne    
7  NameTwo      ValueTwo    
10 NameThree    ValueThree

I need to select with Linq to Entity and get results as you can see in example below:

ItemID ItemName 

1      NameOne       
2      NameTwo         
3      NameThree

© Stack Overflow or respective owner

Related posts about linq-to-entities