illegal attempt to associate a collection with two open sessions fluent nhibernate
问题 I have this exception "illegal attempt to associate a collection with two open sessions", it raises every time I save entity contains collection of children. I google it. I found that I opened two or more sessions when calling save, but I'm sure that I'm using only one session. Where I did wrong? How can I solve this problemn? Note: I'm using MVC4, and fluent NHibernate. Entities: public class Employee : EntityBase<int> { public Employee() : base() { Phones = new List<Phone>(); } public