Hi, i have standart self-referencing table of categories. In entity model i have made association "Children" and "Parent". It is possible to load whole Category object without lazy loading?
if i use the code bellow, it's load only to second level (depth).
db.Categories.MergeOption = System.Data.Objects.MergeOption.NoTracking;
var query = from c in db.Categories.Include("Children")
where c.IsVisible == true
orderby c.SortOrder, c.Id
select c;
It is possible to load references if i have all the category objects allready loaded?
One method to load it is add children property multipletimes
db.Categories.Include("Children.Children.Children.Children.Children")
but it generates very long insane T-SQL code and also it doesn't do what i want..