---
title: "Association references unmapped class的解决方法"
author: "kingfly.good"
date: "2009-08-16T00:09:22Z"
tags: ["C", "C#", "C++", "XML"]
slug: "association-references-unmapped-class"
draft: false
lastmod: "2009-08-16T00:09:22Z"
id: 450346
url: "https://kingfly-good.iteye.com/blog/450346"
---

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