- 增加 List\<T1\> 扩展方法 IncludeMany,实现从已知的内存 List 数据,进行和 ISelect.IncludeMany 相同功能的贪婪加载;

This commit is contained in:
28810
2019-10-07 21:14:18 +08:00
parent 2b72c849d9
commit 53d4332bc5
4 changed files with 34 additions and 1 deletions

View File

@ -956,5 +956,12 @@ namespace FreeSql.Internal.CommonProvider
});
return this;
}
internal void SetList(IEnumerable<T1> list)
{
foreach (var include in _includeToList) include?.Invoke(list);
_orm.Aop.ToList?.Invoke(this, new Aop.ToListEventArgs(list));
_trackToList?.Invoke(list);
}
}
}