The GetAll
and Get
methods of the ready-made CrudAppService
don\'t include child entities.
Is it possible to modify its behavi
For whom that work with AsyncCrudAppService and you have two different lists of child:
Below to get specific parent Object with their list of child
protected override Task GetEntityByIdAsync(int id)
{
var entity = Repository.GetAllIncluding(p => p.listOfFirstChild).Include(x => x.listOfSecondChild).FirstOrDefault(p => p.Id == id);
return base.GetEntityByIdAsync(id);
}