NHibernate如何执行带有输出参数的存储过程,求助

 我来答
蘑菇饭资讯
推荐于2016-05-29 · TA获得超过6万个赞
知道大有可为答主
回答量:1.7万
采纳率:90%
帮助的人:1.3亿
展开全部
NHibernate: exec pro_studentList @p0,@p1,@p2;@p0 = 1 [Type: Int32 (0)], @p1 = 1 [Type: Int32 (0)], @p2 = 0 [Type: Int32 (0)]Test 'M:UnitTest.StudentUnitTest.TestGetPagedListStudent' failed: 值System.Object[]不是Domain.Entity.Student类型,不能在此泛型集合中使用。参数名: value
System.ArgumentException: 值System.Object[]不是Domain.Entity.Student类型,不能在此泛型集合中使用。参数名: value在 System.ThrowHelper.ThrowWrongValueTypeArgumentException(Object value, Type targetType)在 System.Collections.Generic.List`1.System.Collections.IList.Add(Object item)在 NHibernate.Util.ArrayHelper.AddAll(IList to, IList from)在 NHibernate.Impl.SessionImpl.ListCustomQuery(ICustomQuery customQuery, QueryParameters queryParameters, IList results)在 NHibernate.Impl.SessionImpl.List(NativeSQLQuerySpecification spec, QueryParameters queryParameters, IList results)在 NHibernate.Impl.SessionImpl.List[T](NativeSQLQuerySpecification spec, QueryParameters queryParameters)在 NHibernate.Impl.SqlQueryImpl.List[T]()StudentUnitTest.cs(46,0): 在 UnitTest.StudentUnitTest.TestGetPagedListStudent()
0 passed, 1 failed, 0 skipped, took 2.89 seconds (Ad hoc).
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式