读书人

Nhibernate 有关问题分数全部送上

发布时间: 2013-07-09 09:50:48 作者: rapoo

Nhibernate 问题求助,在线等,急,分数全部送上。
could not execute query
[ select cast(count(*) as INT) as col_0_0_ from Comments comment0_ where comment0_.ResourceKey=@p0 and comment0_.Statuses=@p1 ]
Name:p1 - Value:2013050716303200002 Name:p2 - Value:2



错误原因貌似是 参数 索引不对。
[解决办法]
你的查询代码呢?
[解决办法]
你直接运行一下
select cast(count(*) as INT) as col_0_0_ from Comments comment0_ where comment0_.ResourceKey=@p0 and comment0_.Statuses=@p1

什么提示?

count(*) 为什么还要转换一下?

读书人网 >asp.net

热点推荐