Template
fix(architecture): correction of architecture
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user