Query text passed over string variable is not picked up by Analyzer
alex-belikov opened this issue · 0 comments
alex-belikov commented
Example:
public async Task<List<Symbol>> GetAllSymbolsVariable()
{
var sql = "select * from Symbol";
var results = await Conn().QueryAsync<Symbol>(sql); // no warning
return results.AsList();
}
public async Task<List<Symbol>> GetAllSymbolsInline()
{
var results = await Conn().QueryAsync<Symbol>("select * from Symbol"); // has warning
return results.AsList();
}