mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 优化 DbSet/Repository 防止 Aop.AuditValue 触发两次;
This commit is contained in:
@ -436,7 +436,7 @@ namespace FreeSql
|
||||
if (cuig.Length == _table.Columns.Count)
|
||||
return ups.Length == data.Count ? -998 : -997;
|
||||
|
||||
var update = this.OrmUpdate(null).SetSource(data.Select(a => a.Value)).IgnoreColumns(cuig);
|
||||
var update = this.OrmUpdate(data.Select(a => a.Value)).IgnoreColumns(cuig);
|
||||
var affrows = update.ExecuteAffrows();
|
||||
_db._entityChangeReport.AddRange(data.Select(a => new DbContext.EntityChangeReport.ChangeInfo
|
||||
{
|
||||
|
Reference in New Issue
Block a user