Spaces:
Runtime error
Runtime error
Download src/SCM.Domain/Projects/IProjectRepository.cs from rafaeldavila/scm-api: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/spaces/rafaeldavila/scm-api/resolve/main/src/SCM.Domain/Projects/IProjectRepository.cs
- Command line
-
hf download hf://spaces/rafaeldavila/scm-api/src/SCM.Domain/Projects/IProjectRepository.cs
-
curl -L -o IProjectRepository.cs https://huggingface.co/spaces/rafaeldavila/scm-api/resolve/main/src/SCM.Domain/Projects/IProjectRepository.cs
735 Bytes
| namespace SCM.Domain.Projects; | |
| /// <summary>Contrato de persistência de obras. Implementado em SCM.Infrastructure.</summary> | |
| public interface IProjectRepository | |
| { | |
| Task<Project?> GetByIdAsync(Guid id, CancellationToken ct = default); | |
| Task<(IReadOnlyList<Project> Items, long TotalItems)> GetPagedAsync( | |
| int offset, | |
| int pageSize, | |
| string? search, | |
| CancellationToken ct = default); | |
| Task<bool> CodeExistsAsync(string code, Guid? excludeId = null, CancellationToken ct = default); | |
| Task AddAsync(Project project, CancellationToken ct = default); | |
| Task UpdateAsync(Project project, CancellationToken ct = default); | |
| Task<bool> DeleteAsync(Guid id, CancellationToken ct = default); | |
| } | |