Browse Source

1.完善验证逻辑

pull/34/head
tengfei8771 1 year ago
parent
commit
5e8bbb54ba
  1. 2
      Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs

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

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