public async Task Children_Fluent() { var author = await DB.Find <Author>().Match(a => a.FirstName == authorName).ExecuteSingleAsync(); var res = new AuthorWithBooksDTO { Birthday = author.Birthday, FirstName = author.FirstName, LastName = author.LastName, ID = author.ID, BookList = await author.Books.ChildrenFluent().ToListAsync() }; }
public async Task Clientside_Join() { var author = await DB.Find <Author>().Match(a => a.FirstName == authorName).ExecuteSingleAsync(); var res = new AuthorWithBooksDTO { Birthday = author.Birthday, FirstName = author.FirstName, LastName = author.LastName, ID = author.ID, BookList = await DB.Find <Book>().ManyAsync(b => b.Author.ID == author.ID) }; }