Synchronization code

This commit is contained in:
sunkaixuan 2024-05-06 18:55:38 +08:00
parent ab3a0d5dcd
commit 17e24d147d
2 changed files with 9 additions and 5 deletions

View File

@ -871,13 +871,17 @@ namespace SqlSugar
{
newValue = value.ToString();
}
else if(columnInfo.UnderType==SqlSugar.UtilConstants.GuidType)
else if (value is Enum)
{
newValue = Convert.ToInt64(value)+"";
}
else if (columnInfo.UnderType == SqlSugar.UtilConstants.GuidType)
{
newValue = ToGuid(new MethodCallExpressionModel()
{
Args=new List<MethodCallExpressionArgs>()
Args = new List<MethodCallExpressionArgs>()
{
new MethodCallExpressionArgs(){
new MethodCallExpressionArgs(){
MemberValue=value.ToSqlValue(),
MemberName=value.ToSqlValue()
}
@ -897,7 +901,7 @@ namespace SqlSugar
}
});
}
else
else
{
newValue = value.ToSqlValue();
}

View File

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.154</version>
<version>5.1.4.155-preview02</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>