mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 13:03:43 +08:00
1.完善验证逻辑
This commit is contained in:
@@ -157,7 +157,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (type.BaseType.IsGenericType)
|
if (type.BaseType.IsGenericType)
|
||||||
{
|
{
|
||||||
return type.BaseType.GetGenericTypeDefinition().FullName == "System.Linq.Enumerable+Iterator`1";
|
return type.BaseType?.GetGenericTypeDefinition()?.FullName == "System.Linq.Enumerable+Iterator`1";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user