I have a many-to-many relation between Course and Group entities
Course (1:n) Course-Group (n:1) Group
- Course(Name,CourseGroups of type Course-Group ...)
- Group(Name,GroupsCourses of type Course-Group...)
- Course-Group(Course,Group,...)
I want to select Course and related Course-Group and Group
This is my query
QueryOver.Of<Course>().JoinQueryOver<Course-Group>(c => c.CourseGroups).Fetch(cf=>CourseGroups).Eager
.JoinQueryOver<Group>(cg => cg.Group).**[Fetch(cg => cg.Group).Eager.]**
DetachedCriteria
C# Compiler report error for section in the bracket
How can I query a many-To-many relation as above?