You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.LogError("Error while trying to restore product with id {ProductID} from time {DateModified}.\n{Error}\n{StackTrace}",ProductId,DateModified,ex.Message,ex.StackTrace);
134
135
this.Response.StatusCode=500;
135
136
throwex;
136
137
})
137
-
.ExecuteNonQuery(cmd);
138
+
.Exec();
138
139
}
139
140
140
141
@@ -143,12 +144,13 @@ public void RestoreVersion(int ProductId, DateTime DateModified)
143
144
publicasyncTaskReport1()
144
145
{
145
146
awaitsqlQuery
146
-
.Stream(@"
147
+
.Sql(@"
147
148
select color as x, sum(quantity) as y
148
149
from product
149
150
where color is not null
150
151
group by color
151
-
for json path",Response.Body,EMPTY_PRODUCTS_ARRAY);
152
+
for json path")
153
+
.Stream(Response.Body,EMPTY_PRODUCTS_ARRAY);
152
154
}
153
155
154
156
@@ -157,7 +159,7 @@ group by color
157
159
publicasyncTaskReport2()
158
160
{
159
161
awaitsqlQuery
160
-
.Stream(@"
162
+
.Sql(@"
161
163
select name as [key], [values].x, [values].y
162
164
from company
163
165
join (select companyid, color as x, sum(quantity) as y
@@ -166,7 +168,8 @@ where color is not null
166
168
group by companyid, color
167
169
) as [values] on company.companyid = [values].companyid
168
170
order by company.companyid
169
-
for json auto",Response.Body,EMPTY_PRODUCTS_ARRAY);
0 commit comments