@@ -30,7 +30,7 @@ public MethodDeclaration OneDeclare(string funcName, string queryTextConstant, s
3030 funcName ,
3131 argInterface ,
3232 GetMethodArgs ( argInterface , parameters ) ,
33- returnInterface ,
33+ $ " { returnInterface } ?" ,
3434 new List < IComposable >
3535 {
3636 new WithResource ( Variable . Pool . AsProperty ( ) , Variable . Client . AsVar ( ) , withResourceBody . ToList ( ) )
@@ -56,8 +56,11 @@ public MethodDeclaration ManyDeclare(string funcName, string queryTextConstant,
5656 dbDriver . PrepareStmt ( funcName , queryTextConstant ) ,
5757 ExecuteAndAssign ( funcName , queryParams ) ,
5858 new SimpleStatement ( Variable . Entities . AsVar ( ) , new SimpleExpression ( "[]" ) ) ,
59- new ForeachLoop ( Variable . Result . AsVar ( ) , Variable . Row . AsVar ( ) ,
60- new List < IComposable > { listAppend } ) ,
59+ new ForeachLoop (
60+ Variable . Result . AsVar ( ) ,
61+ Variable . Row . AsVar ( ) ,
62+ new List < IComposable > { listAppend }
63+ ) ,
6164 new SimpleExpression ( $ "return { Variable . Entities . AsVar ( ) } ")
6265 ]
6366 ) ;
@@ -66,10 +69,14 @@ public MethodDeclaration ManyDeclare(string funcName, string queryTextConstant,
6669 funcName ,
6770 argInterface ,
6871 GetMethodArgs ( argInterface , parameters ) ,
69- returnInterface ,
72+ $ "Array[ { returnInterface } ]" ,
7073 new List < IComposable >
7174 {
72- new WithResource ( Variable . Pool . AsProperty ( ) , Variable . Client . AsVar ( ) , withResourceBody . ToList ( ) )
75+ new WithResource (
76+ Variable . Pool . AsProperty ( ) ,
77+ Variable . Client . AsVar ( ) ,
78+ withResourceBody . ToList ( )
79+ )
7380 } ) ;
7481 }
7582
0 commit comments