1.index out of range 问题表现如下:
对问题进行跟踪发现entity的值如下:
问题解决:将mapping中相应的配置文件生成操作设为内嵌资源。
2.Could not execute query[SQL: SQL not available] NHibernate.ADOException {NHibernate.Exceptions.GenericADOException}
问题解决方法:数据库中某字段值为空,把该字段赋值后异常消失。
具体原因有待进一步探索。