Dapper Query方法的参数的意思?
public static IEnumerable<T> Query<T>(this IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, bool buffered = true, int? commandTimeout = null, CommandType? commandType = null)
IDbTransaction transaction 和 bool buffered 分别代表的意思
回答
IDbTransaction transaction 指的是传入的事务对象
bool buffered 是否缓存查询结果到内存 详情见 https://github.com/DapperLib/Dapper/blob/main/Dapper/SqlMapper.cs#718