API

Dapper Query<T>

Maps zero or more result rows, buffered by default.

Formal Syntax & Structure

csharp syntaxcsharp
db.Query<string>("SELECT Title FROM Books ORDER BY Id")

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.db.Query<string>("SELECT Title FROM Books ORDER BY Id")
C# & .NET Reference