Update .net framework

This commit is contained in:
sunkaixuan 2022-04-21 17:01:38 +08:00
parent 84e4e69b84
commit ecfb2d5b94

View File

@ -57,7 +57,7 @@ namespace SqlSugar
List<object> list = new List<object>();
if (isList)
{
list = currentList.SelectMany(it => (it.GetType().GetProperty(navObjectName).GetValue(it) as IList).Cast<object>()).ToList();
list = currentList.SelectMany(it => (it.GetType().GetProperty(navObjectName).GetValue(it) as IList)?.Cast<object>()??new List<object> { }).ToList();
}
else