NHibernate问题总结

1.index out of range 问题表现如下:问题图

对问题进行跟踪发现entity的值如下:

问题解决:将mapping中相应的配置文件生成操作设为内嵌资源。

 

2.Could not execute query[SQL: SQL not available]   NHibernate.ADOException {NHibernate.Exceptions.GenericADOException}

问题解决方法:数据库中某字段值为空,把该字段赋值后异常消失。

具体原因有待进一步探索。

 

 

 

 

 

posted @ 2013-05-12 15:55  wuhuidelang  阅读(191)  评论(0)    收藏  举报