Using 'Query' method is not optimal here
Noncompliant Code Example:
var dog = connection.Query<Dog>("select * from dogs").Single();
Compliant Solution:
var dog = connection.QuerySingle<Dog>("select * from dogs");
Using 'Query' method is not optimal here
Noncompliant Code Example:
var dog = connection.Query<Dog>("select * from dogs").Single();
Compliant Solution:
var dog = connection.QuerySingle<Dog>("select * from dogs");