Oracle output cursor bug

This commit is contained in:
sunkaixuan
2018-05-05 14:51:43 +08:00
parent 67358ab9ab
commit f524c73ae2
2 changed files with 11 additions and 1 deletions

View File

@@ -185,6 +185,13 @@ namespace OrmTest.Demo
private static void Ado()
{
var db = GetInstance();
string spName = "PR_TEST";
var p1 = new SugarParameter("@O_RESULT", null, true);
p1.IsRefCursor = true;
var dt3 = db.Ado.UseStoredProcedure().GetDataTable(spName, p1);
db.Ado.BeginTran();
var t1 = db.Ado.SqlQuery<string>("select 'a' from dual");
var t2 = db.Ado.GetInt("select 1 from dual");