Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Created June 8, 2018 13:36
Show Gist options
  • Save ssougnez/89f26c51d82f04c7620b5ef6de25e6c3 to your computer and use it in GitHub Desktop.
Save ssougnez/89f26c51d82f04c7620b5ef6de25e6c3 to your computer and use it in GitHub Desktop.
string sql = $@"SELECT [Id], [FirstName], [LastName], [ChampionTitleCount] FROM [Drivers];";
IEnumerable<Driver> drivers = (await connection.QueryAsync<Driver>(sql));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment