标签: asp.net c#-4.0 linq-to-entities
我想在linq中转换以下sql查询。这个查询给了我正确的输出但在linq中我使用了转换函数它给了我一个错误。
SELECT min(cast(cliAckNo as INT))-1 FROM dbo.Cli_ClientInfoMaster WHERE cast(cliAckNo as int )>5001 and cast(cliAckNo as int)<100001