Skip to content

Commit aff020e

Browse files
authored
Call future batch command delegates for async operations.
1 parent ae0558d commit aff020e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ public void ExecuteQueries()
313313

314314
using (command)
315315
{
316+
QueryFutureManager.OnBatchExecuting?.Invoke(command);
316317
#if EF5
317318
using (var reader = await command.ExecuteReaderAsync(cancellationToken).ConfigureAwait(false))
318319
{
@@ -343,6 +344,7 @@ public void ExecuteQueries()
343344
}
344345
}
345346
#endif
347+
QueryFutureManager.OnBatchExecuted?.Invoke(command);
346348
}
347349
}
348350
finally
@@ -724,4 +726,4 @@ public static void SetOracleDevArtDbType(Assembly assembly, DbParameter dbParame
724726
_SetOracleDevArtDbType(dbParameter, type);
725727
}
726728
}
727-
}
729+
}

0 commit comments

Comments
 (0)