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