mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update default guid
This commit is contained in:
@@ -48,6 +48,10 @@ namespace SqlSugar
|
||||
{
|
||||
item.Value = StaticConfig.CustomGuidFunc();
|
||||
}
|
||||
else if (StaticConfig.CustomGuidByValueFunc != null&& item.Value is Guid guidValue)
|
||||
{
|
||||
item.Value = StaticConfig.CustomGuidByValueFunc(guidValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
item.Value = Guid.NewGuid();
|
||||
|
@@ -21,6 +21,7 @@ namespace SqlSugar
|
||||
public static Func<long> CustomSnowFlakeFunc;
|
||||
public static Func<long> CustomSnowFlakeTimeErrorFunc;
|
||||
public static Func<Guid> CustomGuidFunc;
|
||||
public static Func<Guid,Guid> CustomGuidByValueFunc;
|
||||
|
||||
public static Action<object> CompleteQueryableFunc;
|
||||
public static Action<object> CompleteInsertableFunc;
|
||||
|
Reference in New Issue
Block a user