mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 增加 IInsert/IUpdate BatchProgress 方法处理批量插入/更新时的进度;
This commit is contained in:
@ -433,8 +433,12 @@ namespace FreeSql.Tests
|
||||
new SendInfo{ Code = "002", Binary = Encoding.UTF8.GetBytes("我是地球人") },
|
||||
new SendInfo{ Code = "003", Binary = Encoding.UTF8.GetBytes("我是.net")},
|
||||
new SendInfo{ Code = "004", Binary = Encoding.UTF8.GetBytes("我是freesql") },
|
||||
new SendInfo{ Code = "005", Binary = Encoding.UTF8.GetBytes("我是freesql233") },
|
||||
})
|
||||
.NoneParameter().ExecuteAffrows();
|
||||
.NoneParameter()
|
||||
.BatchOptions(3, 200)
|
||||
.BatchProgress(a => Trace.WriteLine($"{a.Current}/{a.Total}"))
|
||||
.ExecuteAffrows();
|
||||
|
||||
var slslsl = g.oracle.Select<SendInfo>().ToList();
|
||||
|
||||
|
Reference in New Issue
Block a user