Revert "Add mapping methods to IRepository and DbRepository"

This reverts commit 6916e169b17fc22997f3fed178863f2e1ed5d059.
This commit is contained in:
Developer 02 2025-04-17 13:15:22 +02:00
parent 6916e169b1
commit fffbdf752f
2 changed files with 0 additions and 8 deletions

View File

@ -13,8 +13,4 @@ public interface IRepository<TEntity>
public Task UpdateAsync<TUpdate>(TUpdate update, Expression<Func<TEntity, bool>> expression, CancellationToken ct = default);
public Task DeleteAsync<TDto>(Expression<Func<TEntity, bool>> expression, CancellationToken ct = default);
public TEntity Map<TSource>(TSource source);
public TDto Map<TDto>(TEntity source);
}

View File

@ -63,8 +63,4 @@ public class DbRepository<TDbContext, TEntity> : IRepository<TEntity> where TDbC
await Context.SaveChangesAsync(ct);
}
public TEntity Map<TSource>(TSource source) => Mapper.Map<TEntity>(source);
public TDto Map<TDto>(TEntity entity) => Mapper.Map<TDto>(entity);
}