Last active
September 3, 2019 15:15
-
-
Save mikebeaton/bd869afdf1a5553347cc2ab863f20588 to your computer and use it in GitHub Desktop.
Mighty article: Stored procedure with named, directional arguments
This file contains hidden or 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 db = new MightyOrm(connectionSting); | |
var results = db.ExecuteProcedure("TestSumProc", | |
inParams: new { a = 1, b = 2 }, | |
outParams: new { c = 0 }); | |
// passes! | |
Assert.AreEqual(3, results.c); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment