Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 291 Bytes

SQL004.md

File metadata and controls

13 lines (11 loc) · 291 Bytes

SQL004

Using 'QueryMultiple' method is not optimal here

Noncompliant Code Example:

var multi = connection.QueryMultiple("select * from dogs");
var dogs = multi.Read<Dog>();

Compliant Solution:

var dogs = connection.Query<Dog>("select * from dogs");