Skip to content

Commit a80672f

Browse files
Merge pull request #807 from medkg15/async-future-batch-delegate
Async future batch delegate
2 parents ae0558d + 93faf69 commit a80672f

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)