📜  dapper 使用参数运行 sql 脚本 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:05.204000             🧑  作者: Mango

代码示例1
var parameters = new { UserName = username, Password = password };
var sql = "select * from users where username = @UserName and password = @Password";
var result = connection.Query(sql, parameters);