mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +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)
|
foreach (var item in groups)
|
||||||
{
|
{
|
||||||
var list = item.Select(it => it.Value as T).ToList();
|
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);
|
var groupInserable = (InsertableProvider<T>)this.Context.Insertable<T>(list);
|
||||||
|
this.Context.Aop.DataExecuting = dataEvent;
|
||||||
groupInserable.InsertBuilder.TableWithString = parent.InsertBuilder.TableWithString;
|
groupInserable.InsertBuilder.TableWithString = parent.InsertBuilder.TableWithString;
|
||||||
groupInserable.RemoveCacheFunc = parent.RemoveCacheFunc;
|
groupInserable.RemoveCacheFunc = parent.RemoveCacheFunc;
|
||||||
groupInserable.diffModel = parent.diffModel;
|
groupInserable.diffModel = parent.diffModel;
|
||||||
@ -150,7 +153,10 @@ namespace SqlSugar
|
|||||||
foreach (var item in groups)
|
foreach (var item in groups)
|
||||||
{
|
{
|
||||||
var list = item.Select(it => it.Value as T).ToList();
|
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);
|
var groupInserable = (InsertableProvider<T>)this.Context.Insertable<T>(list);
|
||||||
|
this.Context.Aop.DataExecuting = dataEvent;
|
||||||
groupInserable.InsertBuilder.TableWithString = parent.InsertBuilder.TableWithString;
|
groupInserable.InsertBuilder.TableWithString = parent.InsertBuilder.TableWithString;
|
||||||
groupInserable.RemoveCacheFunc = parent.RemoveCacheFunc;
|
groupInserable.RemoveCacheFunc = parent.RemoveCacheFunc;
|
||||||
groupInserable.diffModel = parent.diffModel;
|
groupInserable.diffModel = parent.diffModel;
|
||||||
|
Loading…
Reference in New Issue
Block a user