UnitOfWork icon indicating copy to clipboard operation
UnitOfWork copied to clipboard

how to use Auto Include

Open ssss2131 opened this issue 3 years ago • 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

ssss2131 avatar Oct 31 '22 08:10 ssss2131

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

nappinglady avatar Oct 31 '22 08:10 nappinglady