refactor: rename NotificationEfRepository to EfRepository
Ref: IT-628 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -3,13 +3,13 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace HrynCo.NotificationService.DAL.EF.Core;
|
||||
|
||||
internal abstract class NotificationEfRepository<TEntity>
|
||||
internal abstract class EfRepository<TEntity>
|
||||
where TEntity : class
|
||||
{
|
||||
protected NotificationDbContext DbContext { get; }
|
||||
protected DbSet<TEntity> DbSet { get; }
|
||||
|
||||
protected NotificationEfRepository(NotificationDbContext dbContext)
|
||||
protected EfRepository(NotificationDbContext dbContext)
|
||||
{
|
||||
DbContext = dbContext;
|
||||
DbSet = dbContext.Set<TEntity>();
|
||||
@@ -7,7 +7,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace HrynCo.NotificationService.DAL.EF.Repositories;
|
||||
|
||||
internal sealed class ProviderRepository : NotificationEfRepository<ProviderEntity>, IProviderRepository
|
||||
internal sealed class ProviderRepository : EfRepository<ProviderEntity>, IProviderRepository
|
||||
{
|
||||
public ProviderRepository(NotificationDbContext dbContext) : base(dbContext)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace HrynCo.NotificationService.DAL.EF.Repositories;
|
||||
|
||||
internal sealed class ProviderUsageRepository : NotificationEfRepository<ProviderUsageEntity>, IProviderUsageRepository
|
||||
internal sealed class ProviderUsageRepository : EfRepository<ProviderUsageEntity>, IProviderUsageRepository
|
||||
{
|
||||
public ProviderUsageRepository(NotificationDbContext dbContext) : base(dbContext)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace HrynCo.NotificationService.DAL.EF.Repositories;
|
||||
|
||||
internal sealed class TemplateRepository : NotificationEfRepository<TemplateEntity>, ITemplateRepository
|
||||
internal sealed class TemplateRepository : EfRepository<TemplateEntity>, ITemplateRepository
|
||||
{
|
||||
public TemplateRepository(NotificationDbContext dbContext) : base(dbContext)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user