Thursday, May 7, 2015

Linq to get data from another list

I have entities Category and Item. It contains data like this

Category

ID       Name

1   CC01

2   CC02

3   CC03

Item

ID    CategoryId 

1      1 

2      3 

Now I want Category list(List<Category>) which exists in the items. How can I use linq to get this result out of the List<Category> and List<Item>



No comments:

Post a Comment