Skip to content
New issue

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

v1.7.0 版本调整说明 #382

Closed
2881099 opened this issue Jul 21, 2020 · 0 comments
Closed

v1.7.0 版本调整说明 #382

2881099 opened this issue Jul 21, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@2881099
Copy link
Collaborator

2881099 commented Jul 21, 2020

1、ISelect ToChunk 参数类型调整

#360 (comment)
请问使用ToChunk 时,如果中途需要停止读取,怎么处理

var testlist1 = fsql.Select<Song>().OrderBy(a => a.Id).ToList();
var testlist2 = new List<Song>();
fsql.Select<Song>().OrderBy(a => a.Id).ToChunk(100, done => {
    testlist2.AddRange(done.Object);
    //done.IsBreak = true; v1.7.0 停止读取
});
//这里示范,最终 testlist1 与 testlist2 返回的数据相同。

2、IAdo ExecuteReader 相关方法的类型调整

fsql.Ado.ExecuteReader(fetch =>
{
    var xim = new xxx();
    fetch.Object.GetValue(0);
    fetch.Object.GetValue(1);
    fetch.Object.GetValue(2);
    fetch.Object.GetValue(3);
    fetch.Object.GetValue(4);
    adolist1.Add(xim);
}, "select * from freesql_song");

3、FreeSql.Provider.SqlServer 在 netstandard20 和 net461 引用调整为 Microsoft.Data.SqlClient

@2881099 2881099 added the enhancement New feature or request label Jul 21, 2020
2881099 pushed a commit that referenced this issue Jul 27, 2020
@2881099 2881099 pinned this issue Nov 24, 2020
@2881099 2881099 unpinned this issue Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants