mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 04:37:58 +08:00
1.完善验证逻辑
This commit is contained in:
parent
9a0d1ba378
commit
5e8bbb54ba
@ -157,7 +157,7 @@ namespace SqlSugar
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user