mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-09 09:55:05 +08:00
建表时触发
This commit is contained in:
@@ -28,6 +28,10 @@ namespace SqlSugar
|
|||||||
#region Public methods
|
#region Public methods
|
||||||
public SplitCodeFirstProvider SplitTables()
|
public SplitCodeFirstProvider SplitTables()
|
||||||
{
|
{
|
||||||
|
if (StaticConfig.SplitTableCreateTableFunc != null)
|
||||||
|
{
|
||||||
|
StaticConfig.SplitTableCreateTableFunc();
|
||||||
|
}
|
||||||
var result = new SplitCodeFirstProvider();
|
var result = new SplitCodeFirstProvider();
|
||||||
result.Context = this.Context;
|
result.Context = this.Context;
|
||||||
result.DefaultLength = this.DefultLength;
|
result.DefaultLength = this.DefultLength;
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ namespace SqlSugar
|
|||||||
public static Action<ISqlSugarClient> CompleteDbFunc;
|
public static Action<ISqlSugarClient> CompleteDbFunc;
|
||||||
|
|
||||||
public static Func<List<SplitTableInfo>> SplitTableGetTablesFunc;
|
public static Func<List<SplitTableInfo>> SplitTableGetTablesFunc;
|
||||||
|
public static Func<bool> SplitTableCreateTableFunc;
|
||||||
|
|
||||||
public static bool Check_StringIdentity = true;
|
public static bool Check_StringIdentity = true;
|
||||||
public static bool EnableAllWhereIF = false;
|
public static bool EnableAllWhereIF = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user