mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
1.修改判断bug
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user