Browse Source

1.修改判断bug

pull/35/head
tengfei8771 1 year ago
parent
commit
5ea43e5321
  1. 4
      Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs

4
Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs

@ -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…
Cancel
Save