Skip to content

Commit 3cd8e18

Browse files
Update QueryFutureBatch.cs
1 parent 132097a commit 3cd8e18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/shared/Z.EF.Plus.QueryFuture.Shared/QueryFutureBatch.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ public void ExecuteQueries()
209209
}
210210
#endif
211211
}
212-
213-
Queries.Clear();
214212
}
215213
finally
216214
{
215+
Queries.Clear();
216+
217217
if (ownConnection)
218218
{
219219
#if EFCORE
@@ -324,11 +324,11 @@ public void ExecuteQueries()
324324
}
325325
#endif
326326
}
327-
328-
Queries.Clear();
329327
}
330328
finally
331-
{
329+
{
330+
Queries.Clear();
331+
332332
if (ownConnection)
333333
{
334334
connection.Close();

0 commit comments

Comments
 (0)