This question is locked. New answers and comments are not allowed.
This is probable Linq 101 question but here goes.
Lets say we have 3 classes Book, TagCategory, Tag
A book can have many Tags and Tag is only in one category.
In the DTO part of the solution there are 3 classes Book, TagCategorySelected, Tag.
Where TagCategorySelected holds what tags each book has in each TagCategory.
So each book has List<TagCategorySelected>
What I'm trying to figure out is how to get from a List<Book> a book that has a maching List<TagCategorySeleced>
as the user has selected.
In simple words (or mock linq) List<Book>.Where( b => b.list<TagCategorySelected> == User.list<TagCategorySelected>)
The TagCateforySelected has .Equals and '==' overloaded if that makes any difference.
I just need a push in the right direction.
Lets say we have 3 classes Book, TagCategory, Tag
A book can have many Tags and Tag is only in one category.
In the DTO part of the solution there are 3 classes Book, TagCategorySelected, Tag.
Where TagCategorySelected holds what tags each book has in each TagCategory.
So each book has List<TagCategorySelected>
What I'm trying to figure out is how to get from a List<Book> a book that has a maching List<TagCategorySeleced>
as the user has selected.
In simple words (or mock linq) List<Book>.Where( b => b.list<TagCategorySelected> == User.list<TagCategorySelected>)
The TagCateforySelected has .Equals and '==' overloaded if that makes any difference.
I just need a push in the right direction.