Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query text passed over string variable is not picked up by Analyzer #55

Open
alex-belikov opened this issue Sep 18, 2023 · 0 comments
Open
Labels

Comments

@alex-belikov
Copy link

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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant