Add GetAsyncEnumerable GetEnumerable

This commit is contained in:
sunkaixuan
2025-07-04 09:44:43 +08:00
parent 7e41c76c8f
commit 1b2eab7cc5

View File

@@ -172,6 +172,8 @@ namespace SqlSugar
ISugarQueryable<T> MergeTable();
void ForEachDataReader(Action<T> action);
Task ForEachDataReaderAsync(Action<T> action);
IAsyncEnumerable<T> GetAsyncEnumerable();
IEnumerable<T> GetEnumerable();
void ForEach(Action<T> action, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null);
Task ForEachAsync(Action<T> action, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null);
void ForEachByPage(Action<T> action, int pageIndex, int pageSize, ref int totalNumber, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null);