Eager load while using Linq in NHibernate 3
问题 I need help with eager loading in with Linq in NHibernate 3 trunk version. I have a many-to-many relationship like this: public class Post { public int Id {get;set;} public IList<Tag> Tags { get;set;} . . . } Now I have the following mapping in Fluent NHibernate public class PostMap:ClassMap<Post> { public PostMap() { Table("Posts"); Id(x => x.Id); . . HasManyToMany(x => x.Tags) .Table("PostsTags") .ParentKeyColumn("PostId") .ChildKeyColumn("TagId") .Not.LazyLoad(); // this is not working.. }