Initial Commit

This commit is contained in:
Emmanuel Rojas committed 2026-09-04 12:26:23 -05:00
commit bd7e505432
22 files changed
+871

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);
}