@@ -30,7 +30,7 @@ public MethodDeclaration OneDeclare(string funcName, string queryTextConstant, s
30
30
funcName ,
31
31
argInterface ,
32
32
GetMethodArgs ( argInterface , parameters ) ,
33
- returnInterface ,
33
+ $ " { returnInterface } ?" ,
34
34
new List < IComposable >
35
35
{
36
36
new WithResource ( Variable . Pool . AsProperty ( ) , Variable . Client . AsVar ( ) , withResourceBody . ToList ( ) )
@@ -56,8 +56,11 @@ public MethodDeclaration ManyDeclare(string funcName, string queryTextConstant,
56
56
dbDriver . PrepareStmt ( funcName , queryTextConstant ) ,
57
57
ExecuteAndAssign ( funcName , queryParams ) ,
58
58
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
+ ) ,
61
64
new SimpleExpression ( $ "return { Variable . Entities . AsVar ( ) } ")
62
65
]
63
66
) ;
@@ -66,10 +69,14 @@ public MethodDeclaration ManyDeclare(string funcName, string queryTextConstant,
66
69
funcName ,
67
70
argInterface ,
68
71
GetMethodArgs ( argInterface , parameters ) ,
69
- returnInterface ,
72
+ $ "Array[ { returnInterface } ]" ,
70
73
new List < IComposable >
71
74
{
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
+ )
73
80
} ) ;
74
81
}
75
82
0 commit comments