首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

Nhibernate 有关问题,分数全部送上

2013-07-09 
Nhibernate 问题求助,在线等,急,分数全部送上。could not execute query[ select cast(count(*) as INT) as

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(*) 为什么还要转换一下?

热点排行