Created
September 15, 2020 13:40
-
-
Save jernejk/a8d7bafc89e3d793e9ed72be7b62d5eb 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
public async Task InsertTweetStoreProc(string username, string message, CancellationToken ct = default) | |
{ | |
using (_logger.BeginScope(new Dictionary<string, object> { { "EFQueries", "GetTweetsLog" } })) | |
{ | |
_ = await _context.Database | |
.ExecuteSqlRawAsync( | |
"InsertTweet @Username, @Message", | |
new SqlParameter("Username", username), | |
new SqlParameter("Message", message)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment