mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 12:33:44 +08:00
Update .net framework
This commit is contained in:
@@ -57,7 +57,7 @@ namespace SqlSugar
|
|||||||
List<object> list = new List<object>();
|
List<object> list = new List<object>();
|
||||||
if (isList)
|
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
|
else
|
||||||
|
Reference in New Issue
Block a user