ITeye博客

Association references unmapped class的解决方法

kingfly.good · 2009-08-16 00:09 · ASP.NET · C · C++ · C# · XML · Markdown

搞了半天,原来我的NHibernate.cfg.xml文件里没加上新增加的hbm.xml文件 加上 [code="XML"] ! [/code] 将实体类对应的XML文件的生产操作属性设置成嵌入的资源 在实体类中除了加入数据访问层命名空间之外(using DAL;) 还必须加入 [code="C#"] using System.Collections; [/code]

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。