feat(Repository): CreateAsync-Methoden für DTO wurden in Erweiterungsmethoden konvertiert

This commit is contained in:
Developer 02
2025-04-22 11:21:21 +02:00
parent 5465fe5b49
commit 3c1bbc1151
3 changed files with 17 additions and 17 deletions

View File

@@ -9,11 +9,7 @@ public interface IRepository<TEntity>
public Task<TEntity> CreateAsync(TEntity entity, CancellationToken ct = default);
public Task<IEnumerable<TEntity>> CreateAsync(IEnumerable<TEntity> entities, CancellationToken ct = default);
public Task<TEntity> CreateAsync<TDto>(TDto dto, CancellationToken ct = default);
public Task<IEnumerable<TEntity>> CreateAsync<TDto>(IEnumerable<TDto> dtos, CancellationToken ct = default);
public Task<IEnumerable<TEntity>> ReadAsync(Expression<Func<TEntity, bool>>? expression = null, CancellationToken ct = default);
public Task UpdateAsync<TDto>(TDto dto, Expression<Func<TEntity, bool>> expression, CancellationToken ct = default);