Last active
June 8, 2018 13:34
-
-
Save ssougnez/f7c986b6d7909b7d16c17e165718ca2e 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 = $@"INSERT INTO [Drivers] ([FirstName], [LastName], [ChampionTitleCount]) VALUES (@FirstName, @LastName, @ChampionTitleCount); | |
SELECT CAST(SCOPE_IDENTITY() AS int);"; | |
await connection.ExecuteAsync(sql, new | |
{ | |
FirstName = "Sebastian", | |
LastName = "Vettel", | |
ChampionTitleCount = 4 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment