mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-02 20:02:47 +08:00
1.修改判断bug
This commit is contained in:
parent
5e8bbb54ba
commit
5ea43e5321
@ -155,6 +155,10 @@ namespace SqlSugar
|
||||
}
|
||||
public static bool IsIterator(this Type type)
|
||||
{
|
||||
if (type.BaseType == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (type.BaseType.IsGenericType)
|
||||
{
|
||||
return type.BaseType?.GetGenericTypeDefinition()?.FullName == "System.Linq.Enumerable+Iterator`1";
|
||||
|
Loading…
Reference in New Issue
Block a user