mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
- 修复 BulkUpdate 触发 Aop.AuditValue Insert 类型的问题;
This commit is contained in:
parent
04a4b7c050
commit
7151969ee0
@ -106,7 +106,9 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
await fsql.Ado.CommandFluent(state.Item1).WithConnection(connection).WithTransaction(transaction).ExecuteNonQueryAsync();
|
await fsql.Ado.CommandFluent(state.Item1).WithConnection(connection).WithTransaction(transaction).ExecuteNonQueryAsync();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var insert = fsql.Insert<T1>(update._source)
|
var insert = fsql.Insert<T1>();
|
||||||
|
(insert as InsertProvider<T1>)._source.AddRange(update._source); //不能直接 AppendData,防止触发 Aop.AuditValue
|
||||||
|
insert
|
||||||
.AsType(update._table.Type)
|
.AsType(update._table.Type)
|
||||||
.WithConnection(connection)
|
.WithConnection(connection)
|
||||||
.WithTransaction(transaction)
|
.WithTransaction(transaction)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user