dotnetcore / dotnetcore/FreeSql

IfExistsDoNothing() 在批量插入的时候如果遇到了重复的记录,是这一条记录 DoNothing,还是所有的都 DoNothing

Open
#2,066 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
910
PR merge metrics
No merged PRs in 30d

Description

```c#
List schedules = new List();
// 这里为 List 添加数据。
var affectedRows = await _fsql.InsertOrUpdate().SetSource(schedules).IfExistsDoNothing()
.ExecuteAffrowsAsync(); // ExecuteAffrowsAsync 返回受影响的行数
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.