mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update nav query
This commit is contained in:
@@ -141,11 +141,11 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (pkColumn.UnderType == UtilConstants.GuidType)
|
else if (pkColumn.UnderType == UtilConstants.GuidType)
|
||||||
{
|
{
|
||||||
SetValue(pkColumn, insertData, () => Guid.NewGuid());
|
SetValue(pkColumn, insertData, () => UtilMethods.NewGuid());
|
||||||
}
|
}
|
||||||
else if (pkColumn.UnderType == UtilConstants.StringType)
|
else if (pkColumn.UnderType == UtilConstants.StringType)
|
||||||
{
|
{
|
||||||
SetValue(pkColumn, insertData, () => Guid.NewGuid().ToString());
|
SetValue(pkColumn, insertData, () => UtilMethods.NewGuid().ToString());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -164,11 +164,11 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (pkColumn.UnderType == UtilConstants.GuidType)
|
else if (pkColumn.UnderType == UtilConstants.GuidType)
|
||||||
{
|
{
|
||||||
SetValue(pkColumn, UpdateData, () => Guid.NewGuid());
|
SetValue(pkColumn, UpdateData, () => UtilMethods.NewGuid());
|
||||||
}
|
}
|
||||||
else if (pkColumn.UnderType == UtilConstants.StringType)
|
else if (pkColumn.UnderType == UtilConstants.StringType)
|
||||||
{
|
{
|
||||||
SetValue(pkColumn, UpdateData, () => Guid.NewGuid().ToString());
|
SetValue(pkColumn, UpdateData, () => UtilMethods.NewGuid().ToString());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -2015,5 +2015,13 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return context?.SugarContext?.Context?.CurrentConnectionConfig?.MoreSettings ?? new ConnMoreSettings();
|
return context?.SugarContext?.Context?.CurrentConnectionConfig?.MoreSettings ?? new ConnMoreSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static object NewGuid()
|
||||||
|
{
|
||||||
|
if (StaticConfig.CustomGuidByValueFunc == null)
|
||||||
|
return Guid.NewGuid();
|
||||||
|
else
|
||||||
|
return StaticConfig.CustomGuidByValueFunc(Guid.NewGuid());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user