Answer the question
In order to leave comments, you need to log in
How to load data using include of other levels using entity fraimwork?
Hello, I figured out how to load data for the first 3 levels of an object, I can’t access a specific object at level 4 - it turns out that I’m accessing a list of objects.
Answer the question
In order to leave comments, you need to log in
In one Include, you can immediately show several nested links, then all intermediate ones will also be connected:
return (from e in db.Position
.Include(p => p.Operations.Select(o => o.Transition.Select(t => t.RiggingTransition)))
.Include(p => p.Operations.Select(o => o.MaterialOperation))
where ...
select e).ToList();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question