From fffbdf752f4f04f73cf9cc551b007d6eceb47d2c Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 17 Apr 2025 13:15:22 +0200 Subject: [PATCH] Revert "Add mapping methods to IRepository and DbRepository" This reverts commit 6916e169b17fc22997f3fed178863f2e1ed5d059. --- DigitalData.Core.Abstractions/Infrastructure/IRepository.cs | 4 ---- DigitalData.Core.Infrastructure/DbRepository.cs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/DigitalData.Core.Abstractions/Infrastructure/IRepository.cs b/DigitalData.Core.Abstractions/Infrastructure/IRepository.cs index 18c5e70..5d748bc 100644 --- a/DigitalData.Core.Abstractions/Infrastructure/IRepository.cs +++ b/DigitalData.Core.Abstractions/Infrastructure/IRepository.cs @@ -13,8 +13,4 @@ public interface IRepository public Task UpdateAsync(TUpdate update, Expression> expression, CancellationToken ct = default); public Task DeleteAsync(Expression> expression, CancellationToken ct = default); - - public TEntity Map(TSource source); - - public TDto Map(TEntity source); } diff --git a/DigitalData.Core.Infrastructure/DbRepository.cs b/DigitalData.Core.Infrastructure/DbRepository.cs index 59aba31..67b4480 100644 --- a/DigitalData.Core.Infrastructure/DbRepository.cs +++ b/DigitalData.Core.Infrastructure/DbRepository.cs @@ -63,8 +63,4 @@ public class DbRepository : IRepository where TDbC await Context.SaveChangesAsync(ct); } - - public TEntity Map(TSource source) => Mapper.Map(source); - - public TDto Map(TEntity entity) => Mapper.Map(entity); }