I just recently upgraded to FluentNHibernate 1.2 which uses NHibernate 3.1. After upgrading some of my old mappings are not working. I\'ve been having a hard time figuring out w
You mapped ICollection<PracticeDrill> Drills
with only one foreign key (.KeyColumn("PracticeId")
), but it actually has a composite key. Therefore NH can't fine the PracticeDrill
by its id.
The whole mapping is a bit strange. Why using a reference class? If it is really necessary, why using a composite key?