Spaces:
Running
Running
Download FlowAPI.Application/Interfaces/IGenericRepository.cs from DanilDrotik/FlowAPI: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/ecea7e2cf65ddcb1a751ceab68c14ecad830aa29/FlowAPI.Application/Interfaces/IGenericRepository.cs
- Command line
-
hf download hf://spaces/DanilDrotik/FlowAPI@ecea7e2cf65ddcb1a751ceab68c14ecad830aa29/FlowAPI.Application/Interfaces/IGenericRepository.cs
-
curl -L -o IGenericRepository.cs https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/ecea7e2cf65ddcb1a751ceab68c14ecad830aa29/FlowAPI.Application/Interfaces/IGenericRepository.cs
319 Bytes
| namespace FlowAPI.Application.Interfaces | |
| { | |
| public interface IGenericRepository<T> where T : class | |
| { | |
| Task<IEnumerable<T>> GetAllAsync(); | |
| Task<T?> GetByIdAsync(Guid id); | |
| Task<T> CreateAsync(T entity); | |
| Task<T> UpdateAsync(T entity); | |
| Task<bool> DeleteAsync(Guid id); | |
| } | |
| } | |