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);

原文地址:https://www.cnblogs.com/yfann/p/2537854.html