Skip to content

Commit 342296f

Browse files
committed
correct duplicate generci repo anti pattern
1 parent cbf0af1 commit 342296f

29 files changed

+88
-154
lines changed

Core/Interfaces/Repositories/BaseData/ICountryRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.BaseData
66
{
7-
public interface ICountryRepository : IRepository<Country>
7+
public interface ICountryRepository
88
{
99
Task<IEnumerable<Country>> GetAllCountriesAsync();
1010
}

Core/Interfaces/Repositories/BaseData/ICurrencyRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.BaseData
66
{
7-
public interface ICurrencyRepository : IRepository<Currency>
7+
public interface ICurrencyRepository
88
{
99
Task<IEnumerable<Currency>> GetAllCurrenciesAsync();
1010
}

Core/Interfaces/Repositories/Business/IAccountRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.Business
66
{
7-
public interface IAccountRepository : IRepository<Account>
7+
public interface IAccountRepository
88
{
99
Task<IEnumerable<Account>> GetAllWithPartnerAsync();
1010
}

Core/Interfaces/Repositories/Business/IAssetRepository.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66

77
namespace Core.Interfaces.Repositories.Business
88
{
9-
public interface IAssetRepository : IRepository<Asset>
9+
public interface IAssetRepository
1010
{
11-
Task<IEnumerable<AssetPrice>> GetPrices(Expression<Func<AssetPrice, bool>> predicate);
1211
Task<IEnumerable<Asset>> GetAllAssetsWithDetailsByPortfolioAsync(int portfolioId);
1312
Task<IEnumerable<Asset>> GetAllAssetsWithPricesAsync();
1413
}

Core/Interfaces/Repositories/Business/IBondRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.Business
66
{
7-
public interface IBondRepository : IRepository<Bond>
7+
public interface IBondRepository
88
{
99
Task<Bond> GetBondAssetWithCurrencyAsync(int bondId);
1010
}

Core/Interfaces/Repositories/Business/IContactRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.Business
66
{
7-
public interface IContactRepository : IRepository<Contact>
7+
public interface IContactRepository
88
{
99
Task<IEnumerable<Contact>> GetAllContactsWithPartnersAsync();
1010
}

Core/Interfaces/Repositories/Business/IExchangeRateRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.Business
66
{
7-
public interface IExchangeRateRepository : IRepository<ExchangeRate>
7+
public interface IExchangeRateRepository
88
{
99
Task<IEnumerable<ExchangeRate>> GetExchangeRatesWithCurrenciesAsync();
1010
}

Core/Interfaces/Repositories/Business/IInstitutionRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.Business
66
{
7-
public interface IInstitutionRepository : IRepository<Institution>
7+
public interface IInstitutionRepository
88
{
99
Task<IEnumerable<Institution>> GetAllInstitutionsAsync();
1010
}

Core/Interfaces/Repositories/Business/IPartnerRepository.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
namespace Core.Interfaces.Repositories.Business
77
{
8-
public interface IPartnerRepository : IRepository<Partner>
8+
public interface IPartnerRepository
99
{
10-
IQueryable<PartnerType> GetTypesAsQueryable();
1110
Task<IEnumerable<Partner>> GetAllPartnersAsync();
1211
Task<IEnumerable<Partner>> GetAllPartnersWithTypesAsync();
1312
Task<IEnumerable<Partner>> GetAccountPartnersAsync(int accountId);

Core/Interfaces/Repositories/Business/IPortfolioRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Core.Interfaces.Repositories.Business
66
{
7-
public interface IPortfolioRepository : IRepository<Portfolio>
7+
public interface IPortfolioRepository
88
{
99
Task<IEnumerable<Portfolio>> GetAllPortfoliosWithDetailsAsync();
1010
}

0 commit comments

Comments
 (0)