Skip to content

how to use Auto Include  #154

Description

@ssss2131

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions