Merge branch 'master' of github.com:donet5/SqlSugar

This commit is contained in:
sunkaixuan
2022-10-28 11:07:25 +08:00

View File

@@ -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];