.net - NHibernate many-to-many criteria -


I have a map using problem several-to-many The unit is tags (there is a list of tags in the problem). I want to load all the Problems , which have specific Tags .
For example:
Problem 1 (tag1)
Problem 2 (tag 1, tag2)
problem 3 (tag 1, tag3)
problem 4 (Tag 3, Tag 4)
The system will get back to the problems by tag "Tag 1, Tag 2":
Problem 1 (tag 1)
Problem 2 (tag 1, tag2)
problem 3 (tag 1, tag3)
I have already troubled this issue for a week. Do you have any ideas?
P. s. Load all the lists and filter it by using LINQ, the last possible type is ...

A possible solution: session.CreateQuery (@ " ("Tag", list offset)


Comments