mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 16:18:47 +08:00
-
This commit is contained in:
parent
e55ba3c641
commit
c7d2b6987f
@ -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>()
|
||||||
|
Loading…
Reference in New Issue
Block a user