When using an aggregation function e.g. MIN/MAX an a full table a false DAP231 warning is given
Dapper.Advisor: 1.0.10
To Reproduce
// DAP231: SELECT for single row without WHERE or (TOP and ORDER BY)
public static async Task<int> SelectMax(SqlConnection connection) =>
await connection.QueryFirstOrDefaultAsync<int>("SELECT MAX(SomeColumn) FROM MyTable");
Describe the bug
When using an aggregation function e.g. MIN/MAX an a full table a false
DAP231
warning is givenDapper.Advisor: 1.0.10
To Reproduce