This commit is contained in:
sunkaixuan 2023-05-28 20:55:15 +08:00
parent e55ba3c641
commit c7d2b6987f

View File

@ -1599,6 +1599,7 @@ namespace SqlSugar
#region Split table #region Split table
public SplitTableContext SplitHelper<T>() where T : class, new() public SplitTableContext SplitHelper<T>() where T : class, new()
{ {
UtilMethods.StartCustomSplitTable(this, typeof(T));
var result = new SplitTableContext(this.Context) var result = new SplitTableContext(this.Context)
{ {
EntityInfo = this.Context.EntityMaintenance.GetEntityInfo<T>() EntityInfo = this.Context.EntityMaintenance.GetEntityInfo<T>()
@ -1607,6 +1608,7 @@ namespace SqlSugar
} }
public SplitTableContext SplitHelper(Type entityType) public SplitTableContext SplitHelper(Type entityType)
{ {
UtilMethods.StartCustomSplitTable(this,entityType);
var result = new SplitTableContext(this.Context) var result = new SplitTableContext(this.Context)
{ {
EntityInfo = this.Context.EntityMaintenance.GetEntityInfo(entityType) EntityInfo = this.Context.EntityMaintenance.GetEntityInfo(entityType)
@ -1615,6 +1617,7 @@ namespace SqlSugar
} }
public SplitTableContextResult<T> SplitHelper<T>(T data) where T : class, new() public SplitTableContextResult<T> SplitHelper<T>(T data) where T : class, new()
{ {
UtilMethods.StartCustomSplitTable(this, typeof(T));
var result = new SplitTableContext(this.Context) var result = new SplitTableContext(this.Context)
{ {
EntityInfo = this.Context.EntityMaintenance.GetEntityInfo<T>() EntityInfo = this.Context.EntityMaintenance.GetEntityInfo<T>()
@ -1627,6 +1630,7 @@ namespace SqlSugar
} }
public SplitTableContextResult<T> SplitHelper<T>(List<T> data) where T : class, new() public SplitTableContextResult<T> SplitHelper<T>(List<T> data) where T : class, new()
{ {
UtilMethods.StartCustomSplitTable(this, typeof(T));
var result = new SplitTableContext(this.Context) var result = new SplitTableContext(this.Context)
{ {
EntityInfo = this.Context.EntityMaintenance.GetEntityInfo<T>() EntityInfo = this.Context.EntityMaintenance.GetEntityInfo<T>()