Created
September 19, 2019 12:19
-
-
Save mikebeaton/eacab2be997e569bf692eb856c1161c4 to your computer and use it in GitHub Desktop.
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 results = db.ExecuteWithParams("begin open :p_rc for select * from emp where deptno = 10; end;", | |
outParams: new { p_rc = new Cursor() }, | |
// shared connection (Oracle) or transaction (PostgreSQL) required to share cursors | |
connection: conn); | |
db.ExecuteAsProcedure("cursor_in_out.process_cursor", | |
inParams: new { p_cursor = results.p_rc }, | |
connection: conn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment