NHibernate bag is always null
- by Neville Chinan
I have set up my mapping file and classes as suggested by many articles
class A { ... IList BBag {get;set;} ... }
class B { ... A aObject {get;set;} ... }
<class name="A">...<bag name="BBag" table="B" inverse="true" lazy="false"><key column="A_ID" /><one-to-many class="B" /></bag>...
<class…