Database migration, repository, controller and service

This commit is contained in:
Nickk888 committed 2026-10-09 16:32:38 +02:00
1 parent 07e4e6b381
commit 4fb8768807
17 files changed
+368 -44

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
namespace PaperlessAI.Interfaces;
public interface IRepository<T>
{
Task Add(T model, bool persist = true);
Task Remove(T model, bool persist = true);
Task Update(T model, bool persist = true);
Task<T?> Get(long id);
Task<List<T>> GetAll();
}