arch/UnitOfWork

how to use Auto Include

ssss2131 opened this issue · 1 comments

I‘m working with my MenuTree,this is my code

 var res = await _worker.GetRepository<Menu>().GetFirstOrDefaultAsync(predicate: c => c.Id.Equals(id)
                ,include:source=>source.Include(c=>c.Menus).ThenInclude(c=>c.Menus).ThenInclude(c => c.Menus).ThenInclude(c => c.Menus));``

if i only use one include ,they just include once. but how can i use one include to finnish my MenuTree