Revert "Add mapping methods to IRepository and DbRepository"
This reverts commit 6916e169b17fc22997f3fed178863f2e1ed5d059.
This commit is contained in:
parent
6916e169b1
commit
fffbdf752f
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user