- 优化 DbSet/Repository 防止 Aop.AuditValue 触发两次;

This commit is contained in:
2881099
2022-09-11 15:58:59 +08:00
parent 3e6528a73b
commit cbbc47ea66
5 changed files with 35 additions and 6 deletions

View File

@ -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
{