我正在尝试这样的查询:
SELECT * FROM T WHERE (A,B) IN (('1', '1'),('2', '2'));
但我想使用Dapper。有没有办法做这样的事情:
var tuples = new List<Tuple<string, string>>
{
Tuple.Create("1", "2"),
Tuple.Create("3", "4")
};
conn.Query<MyObject>("SELECT * FROM T WHERE (A, B) IN :abTuples",
new { abTuples = tuples });