Synchronization code

This commit is contained in:
sunkaixuan
2023-08-29 15:54:39 +08:00
parent 1e38460690
commit 3a99cd8576

View File

@@ -2147,7 +2147,10 @@ namespace SqlSugar
{ {
if (isFirst) if (isFirst)
{ {
itemProperty.SetValue(item, (subList as IList)[0] ); if ((subList as IList).Count > 0)
{
itemProperty.SetValue(item, (subList as IList)[0]);
}
} }
else else
{ {