Skip to content

Instantly share code, notes, and snippets.

@taylonr
Created February 20, 2012 17:27
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 taylonr/1870197 to your computer and use it in GitHub Desktop.
Save taylonr/1870197 to your computer and use it in GitHub Desktop.
Petapoco ExecuteScalar
var returnCode = Database.ExecuteScalar<int>(
"exec GetData @userId, @date",
new {userId = userId, @date = DateTime.Now});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment