Browse Source
Merge pull request #11287 from abpframework/liangshiwei/doc
Update Tutorials
pull/11292/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
docs/zh-Hans/Tutorials/Part-10.md
|
|
|
@ -377,7 +377,7 @@ namespace Acme.BookStore.Books |
|
|
|
|
|
|
|
//Prepare a query to join books and authors |
|
|
|
var query = from book in queryable |
|
|
|
join author in _authorRepository on book.AuthorId equals author.Id |
|
|
|
join author in await _authorRepository.GetQueryableAsync() on book.AuthorId equals author.Id |
|
|
|
where book.Id == id |
|
|
|
select new { book, author }; |
|
|
|
|
|
|
|
@ -400,7 +400,7 @@ namespace Acme.BookStore.Books |
|
|
|
|
|
|
|
//Prepare a query to join books and authors |
|
|
|
var query = from book in queryable |
|
|
|
join author in _authorRepository on book.AuthorId equals author.Id |
|
|
|
join author in await _authorRepository.GetQueryableAsync() on book.AuthorId equals author.Id |
|
|
|
select new {book, author}; |
|
|
|
|
|
|
|
//Paging |
|
|
|
|