mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Update guid
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.203-preview08</version>
|
||||
<version>5.1.4.203-preview15</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
@@ -2018,10 +2018,18 @@ namespace SqlSugar
|
||||
|
||||
public static object NewGuid()
|
||||
{
|
||||
if (StaticConfig.CustomGuidByValueFunc == null)
|
||||
return Guid.NewGuid();
|
||||
else
|
||||
if (StaticConfig.CustomGuidFunc != null)
|
||||
{
|
||||
return StaticConfig.CustomGuidFunc();
|
||||
}
|
||||
else if (StaticConfig.CustomGuidByValueFunc != null)
|
||||
{
|
||||
return StaticConfig.CustomGuidByValueFunc(Guid.NewGuid());
|
||||
}
|
||||
else
|
||||
{
|
||||
return Guid.NewGuid();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user