所以我有一个情况,需要连接(和映射)超过7个实体(就我所知,这是Dapper的当前限制)。 以下是我的伪代码:
using (var connection = new SqlConnection(_connectionString)) {
IEnumerable<BigEntity> results =
connection.Query<BigEntity, Lookup1, Lookup2, ... around 10 of them>(sql,
(b, l1, l2, l3) => {
// map and return here
},
splitOn: "split1, split2 ...");
}
有没有绕过这个限制的方法?有人遇到过这个问题吗?也许可以使用一些 Dapper 扩展?