Skip to content

Instantly share code, notes, and snippets.

@jernejk
Created March 7, 2020 13:02
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/b2f500ceb8776ce5f2a31a1458868a67 to your computer and use it in GitHub Desktop.
Save jernejk/b2f500ceb8776ce5f2a31a1458868a67 to your computer and use it in GitHub Desktop.
public async Task InsertTweetWithoutLogScope(string username, string message, CancellationToken ct = default)
{
_context.Tweets.Add(new Tweet
{
Username = username,
Message = message
});
await _context.SaveChangesAsync(ct);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment