From 1be24585911930f92fe87e17f4b2fd190ab22204 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Mon, 2 Apr 2018 15:04:18 -0500 Subject: [PATCH] advancing. --- PoweredSoft.DynamicLinq.ConsoleApp/BetterProto2.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PoweredSoft.DynamicLinq.ConsoleApp/BetterProto2.cs b/PoweredSoft.DynamicLinq.ConsoleApp/BetterProto2.cs index 00ffb86..3a93028 100644 --- a/PoweredSoft.DynamicLinq.ConsoleApp/BetterProto2.cs +++ b/PoweredSoft.DynamicLinq.ConsoleApp/BetterProto2.cs @@ -51,6 +51,7 @@ namespace PoweredSoft.DynamicLinq.ConsoleApp new List().AsQueryable().Select(t => new { FirstNames = t.Author == null ? new List() : (t.Author.Posts == null ? new List() : t.Author.Posts.Where(t2 => t2.Author != null).Select(t2 => t2.Author.FirstName)), + PostsAuthors = t.Author == null ? new List() : (t.Author.Posts == null ? new List() : t.Author.Posts.Where(t2 => t2.Author != null).Select(t2 => t2.Author)), Comments = t.Comments == null ? new List() : t.Comments, CommentLikes = (t.Comments == null ? new List() : t.Comments.Where(t2 => t2.CommentLikes != null).SelectMany(t2 => t2.CommentLikes)), CommentLikeIds = (t.Comments == null ? new List() : t.Comments.Where(t2 => t2.CommentLikes != null).SelectMany(t2 => t2.CommentLikes.Select(t3 => t3.Id))),