mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-17 21:49:33 +08:00
fix Guid?
type conversion
This commit is contained in:
parent
0cf9a96737
commit
979f9c34e1
@ -370,6 +370,7 @@ namespace SqlSugar
|
|||||||
else
|
else
|
||||||
return Enum.ToObject(type, value);
|
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)
|
if (!type.IsInterface && type.IsGenericType)
|
||||||
{
|
{
|
||||||
Type innerType = type.GetGenericArguments()[0];
|
Type innerType = type.GetGenericArguments()[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user