Skip to content

Instantly share code, notes, and snippets.

@jernejk
Created September 15, 2020 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jernejk/1c6a05481dfc207be8c5d10af564fd2e to your computer and use it in GitHub Desktop.
Save jernejk/1c6a05481dfc207be8c5d10af564fd2e to your computer and use it in GitHub Desktop.
public async Task InsertTweetStoreProc(string username, string message, CancellationToken ct = default)
{
using (_logger.BeginScope(new Dictionary<string, object> { { "EFQueries", "InsertTweetStoreProc" } }))
{
_ = 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