0
点赞
收藏
分享

微信扫一扫

C# Dapper 查列表,in语句


dapper sql ,in (xxx,xxx,xxx,xxxx)
但又不想写 string.join() 自己拼条件字符串怎么办?

demo:

 var sql = $"select * from aaa where Fphm in @fphmList;";

result = con.Query<TableModel>(sql, new { fphmList }).ToList();


举报

相关推荐

0 条评论