mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-23 00:30:56 +08:00
- 修复 ZeroDbContext IncludeAll 死循环 bug;
This commit is contained in:
@@ -296,12 +296,12 @@ namespace FreeSql.Extensions.ZeroEntity
|
||||
{
|
||||
if (list?.Any() != true) return;
|
||||
if (flagIndexs == null) flagIndexs = new List<string>();
|
||||
flagIndexs.Add(alias.Table.CsName);
|
||||
|
||||
var nav = alias.Table.Navigates[navMany.Item1];
|
||||
if (_includeAll && flagIndexs.Contains(nav.RefTable.CsName)) return;
|
||||
if (_includeAll && flagIndexs.Contains(nav.RefTable.CsName)) return;
|
||||
flagIndexs.Add(nav.RefTable.CsName);
|
||||
|
||||
if (nav.RefType == TableRefType.OneToMany)
|
||||
if (nav.RefType == TableRefType.OneToMany)
|
||||
{
|
||||
var subTable = nav.RefTable;
|
||||
var subSelect = new SelectImpl(_dbcontext, subTable.CsName);
|
||||
|
||||
Reference in New Issue
Block a user