Oracle 用Drapper进行like模糊传参查询需要在参数值前后带%符合
string sqlstr=”select * from tblname where name like :name”;
var paramvalue = string.Format("%{0}%", keyword);
object param = new { name= paramvalue };
var datas = conn.Query<TAXI_INFO>(sqlstr, param);
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/p/6259915.html,如需转载请自行联系原作者