Created
February 20, 2012 17:27
-
-
Save taylonr/1870197 to your computer and use it in GitHub Desktop.
Petapoco ExecuteScalar
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
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