Total Pageviews

2009/09/29

NHibernate for .NET

Check out this SlideShare Presentation:

nHibernate Explained by example

Check out this SlideShare Presentation:

2009/09/25

NHibernate 常見問題



包含
  • hbm.xmlNHibernate文件中版本号可能引起的问题.
  • 在对照类中如果属性没有加virtual关键字
  • 映射文件没有将属性设为"嵌入的资源"引起的错误.
  • "Could not find the dialect in the configuration"异常
  • "未能未能加载文件或程序集Castle.DynamicProxy2"的异常

http://zhangrh1008.spaces.live.com/blog/cns!A5242842A85F6A16!171.entry?sa=47445455

2009/09/14

NHibernate.MappingException: No persister for: HelloNHibernate.vo.People

I am testing NHibnernate these days, but I get this kind of error message NHibernate.MappingException: No persister for: HelloNHibernate.vo.People

The cs name, package name are correct, but the console still report this error message.

Finally, I found out the root cause: all mapping files should be set Embedded Resource, then it can execture correctly.

right-click in XXX.hbm.xml->Properties->Build Action="Embedded Resource"

2009/09/13