Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 315 Bytes

SQL003.md

File metadata and controls

14 lines (11 loc) · 315 Bytes

SQL003

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");

https://github.com/StackExchange/Dapper#performance