diff --git a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs index 55896d176..8091c7c23 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs @@ -370,6 +370,7 @@ namespace SqlSugar else return Enum.ToObject(type, value); } + if (value is string && type == typeof(Guid?)) return value.IsNullOrEmpty() ? null : (Guid?)new Guid(value as string); if (!type.IsInterface && type.IsGenericType) { Type innerType = type.GetGenericArguments()[0];