Skip to content

Commit

Permalink
Remove count
Browse files Browse the repository at this point in the history
  • Loading branch information
efleming18 committed Mar 2, 2019
1 parent 4279610 commit 1ba52be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/ApplicationCore/Interfaces/IRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
public interface IRepository<T> where T : BaseEntity
{
T GetSingleBySpec(ISpecification<T> spec);
int Count(ISpecification<T> spec);
}
}
5 changes: 0 additions & 5 deletions src/Infrastructure/Data/EfRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ public async Task<IReadOnlyList<T>> ListAsync(ISpecification<T> spec)
return await ApplySpecification(spec).ToListAsync();
}

public int Count(ISpecification<T> spec)
{
return ApplySpecification(spec).Count();
}

public async Task<int> CountAsync(ISpecification<T> spec)
{
return await ApplySpecification(spec).CountAsync();
Expand Down

0 comments on commit 1ba52be

Please sign in to comment.