Nhibernate ArgumentNullException

System.ArgumentNullException : A type specific Set(position, val) should be called because the Type can not be guessed from a null value.

出现此异常时需要为参数值为null时指定类型。

query.SetParameter(position, null, NHibernateUtil.Int32);

posted @ 2012-06-06 10:58  fannet  阅读(263)  评论(0)    收藏  举报