Entity Framework Plus Query IncludeFilter - Load multiple levels
// using Z.EntityFramework.Plus; // Don't forget to include this. var ctx = new EntitiesContext(); // LOAD blogs and related active posts and comments. var blogs = ctx.Blogs.IncludeFilter(x => x.Posts.Where(y => !y.IsSoftDeleted)) .IncludeFilter(x => x.Posts.Where(y => !y.IsSoftDeleted) .Select(y => y.Comments .Where(z => !z.IsSoftDeleted))) .ToList();