📜  IDbConnection 获取计数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:00.302000             🧑  作者: Mango

代码示例1
DapperConnection.ExecuteScalar("SELECT COUNT(*) FROM customers");

// You will be happier and live longer if you avoid dynamically constructing 
// sql with string concat.