mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Update Subquery.ToList
This commit is contained in:
@@ -1534,15 +1534,18 @@ namespace SqlSugar
|
||||
foreach (var item in result)
|
||||
{
|
||||
var setValue = Activator.CreateInstance(itemProperty.PropertyType, true) as IList;
|
||||
var appindex = 0;
|
||||
foreach (var appValue in appendValue)
|
||||
if (appendValue != null)
|
||||
{
|
||||
if (appValue[0].Value.ObjToInt() == resIndex)
|
||||
var appindex = 0;
|
||||
foreach (var appValue in appendValue)
|
||||
{
|
||||
var addItem = list[appindex];
|
||||
setValue.Add(addItem);
|
||||
if (appValue[0].Value.ObjToInt() == resIndex)
|
||||
{
|
||||
var addItem = list[appindex];
|
||||
setValue.Add(addItem);
|
||||
}
|
||||
appindex++;
|
||||
}
|
||||
appindex++;
|
||||
}
|
||||
itemProperty.SetValue(item, setValue);
|
||||
resIndex++;
|
||||
|
||||
@@ -108,6 +108,10 @@ namespace SqlSugar
|
||||
{
|
||||
result = "distinct "+result;
|
||||
}
|
||||
if (this.SubToListParameters != null && this.SubToListParameters.Any())
|
||||
{
|
||||
result = SubToListMethod(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user