Skip to content

找不到新的ToChunkAsync方法 #2015

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No 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? No Sign in to your account

Open
jakey188 opened this issue Apr 24, 2025 · 4 comments
Open

找不到新的ToChunkAsync方法 #2015

jakey188 opened this issue Apr 24, 2025 · 4 comments

Comments

@jakey188
Copy link

问题描述及重现代码:

IFreeSql fsql = new FreeSql.FreeSqlBuilder()
       .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=freedb.db")
       .UseAdoConnectionPool(true)
       .UseMonitorCommand(cmd => Console.WriteLine($"Sql:{cmd.CommandText}"))
       .UseAutoSyncStructure(true) //自动同步实体结构到数据库,只有CRUD时才会生成表
       .Build();

fsql.Select<Blog>().ToChunkAsync;

这里没有ToChunkAsync方法只有ToChunk同步方法

数据库版本

安装的Nuget包

<PackageReference Include="FreeSql" Version="3.5.203" />
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.5.203" />

.net framework/. net core? 及具体版本

net8 控制台项目

@2881099
Copy link
Collaborator

2881099 commented Apr 24, 2025

是的,暂时没有 ToChunkAsync

@2881099
Copy link
Collaborator

2881099 commented Apr 24, 2025

单表没有,多表有,可能漏了吧

@2881099
Copy link
Collaborator

2881099 commented Apr 24, 2025

新版本即将发布:

await foreach (var items in fsql.Select<User1>().ToChunkAsyncEnumerable(10))
{
    foreach (var item in items)
        Console.WriteLine(item.Nickname);
}

@jakey188
Copy link
Author

新版本即将发布:

await foreach (var items in fsql.Select().ToChunkAsyncEnumerable(10))
{
foreach (var item in items)
Console.WriteLine(item.Nickname);
}

这个正好也能用上,什么时候发?

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants