Refactored to follow naming convention

This commit is contained in:
Veljko Tosic
2026-02-11 13:10:39 +01:00
parent e7abe1eaed
commit 4255512097
14 changed files with 128 additions and 128 deletions

View File

@@ -2,11 +2,11 @@ using AipsCore.Domain.Common.ValueObjects;
namespace AipsCore.Domain.Abstract;
public interface IAbstractRepository<TEntity, in TId>
where TEntity : DomainEntity<TId>
public interface IAbstractRepository<TModel, in TId>
where TModel : DomainModel<TId>
where TId : DomainId
{
Task<TEntity?> GetByIdAsync(TId id, CancellationToken cancellationToken = default);
Task SaveAsync(TEntity entity, CancellationToken cancellationToken = default);
Task AddAsync(TEntity entity, CancellationToken cancellationToken = default);
Task<TModel?> GetByIdAsync(TId id, CancellationToken cancellationToken = default);
Task SaveAsync(TModel model, CancellationToken cancellationToken = default);
Task AddAsync(TModel model, CancellationToken cancellationToken = default);
}