Created
June 8, 2018 13:39
-
-
Save ssougnez/7f0bbf2603a0b73ceef351c89719f899 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string sql = $@"SELECT [Tracks].[Id], [Tracks].[Title], | |
[Drivers].[Id], [Drivers].[FirstName], [Drivers].[LastName], [Drivers].[ChampionTitleCount] | |
FROM [Tracks] | |
INNER JOIN [Drivers] | |
ON [Drivers].[Id] = [Tracks].[BeastLapTimeDriverId] | |
WHERE [Tracks].[Id] = 1;"; | |
Track track = (await connection.QueryAsync<Track, Driver>(sql)).FirstOrDefault(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment