Nhibernate, QueryOver many to many - problem z paginacją

0

Tabele są w relacji many to many. Chcę pobrać 5 postów według tagu. Ktoś może mnie oświecić.


                    var post = session.QueryOver<Tag>()
                        .Where(x => x.Id == 1)
                        .Left.JoinAlias(a => a.Posts, () => post)
                        .SelectList(ls => ls
                            .Select(() => post.Title).WithAlias(() => PostDTO.Title))
                        .TransformUsing(Transformers.AliasToBean<Post>()).Take(5)
                        .List<Post>();

Problem jest kiedy chcę pod każdym postem wyświetlić inne Tagi

Post.Tags.ForEachM<t => t.Name>()
1

Już mam.
.TransformUsing(Transformers.DistinctRootEntity)

1 użytkowników online, w tym zalogowanych: 0, gości: 1