Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use Auto Include #154

Open
ssss2131 opened this issue Oct 31, 2022 · 1 comment
Open

how to use Auto Include #154

ssss2131 opened this issue Oct 31, 2022 · 1 comment

Comments

@ssss2131
Copy link

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

@nappinglady
Copy link

nappinglady commented Oct 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants