We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task ToChunkAsync<TReturn>(Expression<Func<T1, TReturn>> select, int size, Func<FetchCallbackArgs<List<TReturn>>, CancellationToken, ValueTask> done, Cancellationtoken token = default);
一般大数据操作后续都会涉及注入文件导出,请求调用等IO操作。及其需要异步API版本的支持
var streamWriter = new StreamWriter(File.OpenWrite(string.Empty)); dto.Editable = !await freeSql.Select<SysFlowActivity>().WithLock() .Where(activity => activity.ObjId == appCaseList.ApplyId) .Where(activity => activity.FlowType == FlowType.ApplyOpenCase) .Where(activity => activity.Status != 0) .ToChunkAsync(100, async (args, token) => { var data = args.Object; foreach (var d in data) { await streamWriter.WriteLineAsync(d.Id); } }) .AnyAsync(cancellationToken);
The text was updated successfully, but these errors were encountered:
- 增加 ToChunkAsync 异步 Api;#1952
6ead049
v3.5.103-preview20241224 #1952 #1953 #1946
32d0916
No branches or pull requests
Feature 特性
简要描述原因
一般大数据操作后续都会涉及注入文件导出,请求调用等IO操作。及其需要异步API版本的支持
使用场景
The text was updated successfully, but these errors were encountered: