fix(architecture): correction of architecture

This commit is contained in:
Emmanuel Rojas committed 2026-09-04 12:41:10 -05:00
1 parent dcc2e99bb1
commit 8e6d35ea0a
2 files changed

No files matched your search

@@ -0,0 +1,15 @@
using System.Linq.Expressions;
using RT.Domain.Entities;
namespace RT.Infrastructure.Repositories;
public interface IRepository<T> where T : BaseEntity
{
Task<T?> GetByIdAsync(Guid id, CancellationToken ct = default);
Task<IEnumerable<T>> GetAllAsync(CancellationToken ct = default);
Task<int> CountAsync(Expression<Func<T, bool>>? predicate = null, CancellationToken ct = default);
Task InsertAsync(T entity, CancellationToken ct = default);
Task UpdateAsync(T entity, CancellationToken ct = default);
Task RemoveAsync(T entity, CancellationToken ct = default);
Task SaveChangesAsync(CancellationToken ct = default);
}