fixed include errors
This commit is contained in:
@@ -8,6 +8,11 @@ public class GetMemberByIdSpec : SingleResultSpecification<Member>
|
||||
public GetMemberByIdSpec(int memberId)
|
||||
{
|
||||
Query
|
||||
.Include(x => x.Loans)!
|
||||
.ThenInclude(x => x.Book)
|
||||
.ThenInclude(a => a!.Author)
|
||||
.Include(x => x.Reviews)!
|
||||
.ThenInclude(x => x.Book)
|
||||
.Where(x => x.Id == memberId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user