Skip to content

Commit 1918f1f

Browse files
authored
Update specifications to use ISpecification interface
1 parent beed578 commit 1918f1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ var user = await _uow
637637

638638
```
639639
public sealed class ActiveUsersCountSpec
640-
: IResultSpecification<User, int>
640+
: ISpecification<User, int>
641641
{
642642
public Expression<Func<User, bool>>? Criteria => u => u.IsActive;
643643
public IList<Expression<Func<User, object>>>? IncludeProperties => null;
@@ -662,7 +662,7 @@ var count = await uow.Repository<User>().EvaluateAsync(new ActiveUsersCountSpec(
662662
**DTO projection**
663663
```
664664
public sealed class UserSummarySpec
665-
: IResultSpecification<User, UserSummaryDto>
665+
: ISpecification<User, UserSummaryDto>
666666
{
667667
public Func<IQueryable<User>, IQueryable<UserSummaryDto>> Projection =>
668668
q => q.Select(u => new UserSummaryDto(u.Id, u.Name));

0 commit comments

Comments
 (0)