From 1ba52becaaf9dacbfa1c9d56853228c6d075395c Mon Sep 17 00:00:00 2001 From: Eric Fleming Date: Fri, 1 Mar 2019 22:12:43 -0500 Subject: [PATCH] Remove count --- src/ApplicationCore/Interfaces/IRepository.cs | 1 - src/Infrastructure/Data/EfRepository.cs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/ApplicationCore/Interfaces/IRepository.cs b/src/ApplicationCore/Interfaces/IRepository.cs index 8d5c38e..c9414d1 100644 --- a/src/ApplicationCore/Interfaces/IRepository.cs +++ b/src/ApplicationCore/Interfaces/IRepository.cs @@ -6,6 +6,5 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces public interface IRepository where T : BaseEntity { T GetSingleBySpec(ISpecification spec); - int Count(ISpecification spec); } } diff --git a/src/Infrastructure/Data/EfRepository.cs b/src/Infrastructure/Data/EfRepository.cs index b5afbee..45f1ac5 100644 --- a/src/Infrastructure/Data/EfRepository.cs +++ b/src/Infrastructure/Data/EfRepository.cs @@ -45,11 +45,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data return await ApplySpecification(spec).ToListAsync(); } - public int Count(ISpecification spec) - { - return ApplySpecification(spec).Count(); - } - public async Task CountAsync(ISpecification spec) { return await ApplySpecification(spec).CountAsync();