mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-04 23:39:31 +08:00
Update split table DataE
This commit is contained in:
parent
9b1a69df31
commit
b7aea2b2e2
@ -129,7 +129,10 @@ namespace SqlSugar
|
||||
foreach (var item in groups)
|
||||
{
|
||||
var list = item.Select(it => it.Value as T).ToList();
|
||||
var dataEvent = this.Context.CurrentConnectionConfig.AopEvents?.DataExecuting;
|
||||
this.Context.Aop.DataExecuting = null;
|
||||
var groupInserable = (InsertableProvider<T>)this.Context.Insertable<T>(list);
|
||||
this.Context.Aop.DataExecuting = dataEvent;
|
||||
groupInserable.InsertBuilder.TableWithString = parent.InsertBuilder.TableWithString;
|
||||
groupInserable.RemoveCacheFunc = parent.RemoveCacheFunc;
|
||||
groupInserable.diffModel = parent.diffModel;
|
||||
@ -150,7 +153,10 @@ namespace SqlSugar
|
||||
foreach (var item in groups)
|
||||
{
|
||||
var list = item.Select(it => it.Value as T).ToList();
|
||||
var dataEvent = this.Context.CurrentConnectionConfig.AopEvents?.DataExecuting;
|
||||
this.Context.Aop.DataExecuting = null;
|
||||
var groupInserable = (InsertableProvider<T>)this.Context.Insertable<T>(list);
|
||||
this.Context.Aop.DataExecuting = dataEvent;
|
||||
groupInserable.InsertBuilder.TableWithString = parent.InsertBuilder.TableWithString;
|
||||
groupInserable.RemoveCacheFunc = parent.RemoveCacheFunc;
|
||||
groupInserable.diffModel = parent.diffModel;
|
||||
|
Loading…
Reference in New Issue
Block a user