failed: NHibernate.MappingException : Association references unmapped class: SomeEntityClass
即表示使用 ActiveRecordStarter.Initialize() 方法初始化对象数据映射时缺少了对 SomeEntityClass 类的初始化,原因是正在使用的类与 SomeEntityClass 该类存在关联关系(一对多、多对多等)。
解决方法是在 ActiveRecordStarter.Initialize() 里加上 SomeEntityClass 的初始化,例如:
ActiveRecordStarter.Initialize( src, typeof(Account), typeof(Role), typeof(SomeEntityClass) );