Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Update part-7.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming authored Jan 12, 2024
1 parent 89cc83f commit 805e1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/tutorials/book-store/part-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ public class EfCoreAuthorRepository
int skipCount,
int maxResultCount,
string sorting,
string filter = null)
string? filter = null)
{
var dbSet = await GetDbSetAsync();
return await dbSet
.WhereIf(
!filter.IsNullOrWhiteSpace(),
author => author.Name.Contains(filter)
author => author.Name.Contains(filter!)
)
.OrderBy(sorting)
.Skip(skipCount)
Expand Down

0 comments on commit 805e1bb

Please sign in to comment.