Dapper中是否有ExecuteScalar [英] is there an ExecuteScalar in Dapper

查看:113
本文介绍了Dapper中是否有ExecuteScalar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dapper中似乎有一个ExecuteScalar ...

it looks like there was an ExecuteScalar in Dapper...

http://code.google.com/p/dapper-dot-net/issues /attachmentText?id=22&aid=220000000&name=ExecuteScalar.cs&token=9e2fd8899022f507b140ffb883c60e34

是否已重命名或删除了ExecuteScalar?

Was ExecuteScalar renamed or removed?

现在可以使用.Query或.Query< T>来实现吗?

Can this now be achieved with .Query or .Query<T>?

推荐答案

ExecuteScalar刚刚在1.28中添加: https://www.nuget.org/packages/Dapper

ExecuteScalar was just added in 1.28: https://www.nuget.org/packages/Dapper

这篇关于Dapper中是否有ExecuteScalar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆