Implementing one-to-many bidirectional association.
I have wrote two mapping files, first have:
Code:
<class name="HelloNHibernate.Domains.Associations.OneToMany.B,
HelloNHibernate" lazy ="false" table="OMTableB">
...
<set name="As" inverse="true">
<key column="IDinB"/>
<one-to-many class="A"/>
</set>
</class>
Second have:
Code:
<class name="HelloNHibernate.Domains.Associations.OneToMany.A,
HelloNHibernate" lazy ="false" table="OMTableA">
... <many-to-one name="Parent" column="IDinB" class="B"/>
</class>
After being compiled, NHibernate says that he couldn`t find class="A" in first mapping file. I suspect that this is because on this step, he haven`t compiled second mapping file. What should I do?
Exception is : {"Could not load type A. Possible cause: no assembly name specified.":""}, "associated class not found: A"