Skip to content

Commit

Permalink
Merge pull request #439 from neozhu/fixbuilderror
Browse files Browse the repository at this point in the history
commit
  • Loading branch information
neozhu authored Jul 10, 2023
2 parents ebe58f8 + cc112dd commit 029328e
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 1,652 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class CustomersPaginationSpecification : Specification<Customer>
public CustomersPaginationSpecification(CustomersWithPaginationQuery query)
{
Criteria = q => q.Name != null;
if (!string.IsNullOrEmpty(query.Keyword)) And(x => x.Name.Contains(query.Keyword));
if (!string.IsNullOrEmpty(query.Keyword)) And(x => x.Name!.Contains(query.Keyword));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private class Mapping : Profile
public Mapping()
{
CreateMap<ApplicationUser, ApplicationUserDto>(MemberList.None)
.ForMember(x => x.SuperiorName, s => s.MapFrom(y => y.Superior.UserName))
.ForMember(x => x.SuperiorName, s => s.MapFrom(y => y.Superior!.UserName))
.ForMember(x => x.AssignedRoles, s => s.MapFrom(y => y.UserRoles.Select(r => r.Role.Name)));
}
}
Expand Down

This file was deleted.

Loading

0 comments on commit 029328e

Please sign in to comment.