mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 14:25:17 -04:00
Progress Overhaul + Profile Page and a LOT more! (#4262)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
@@ -36,6 +36,7 @@ public interface IUnitOfWork
|
||||
IAppUserReadingProfileRepository AppUserReadingProfileRepository { get; }
|
||||
IAnnotationRepository AnnotationRepository { get; }
|
||||
IEpubFontRepository EpubFontRepository { get; }
|
||||
IReadingSessionRepository ReadingSessionRepository { get; }
|
||||
bool Commit();
|
||||
Task<bool> CommitAsync();
|
||||
bool HasChanges();
|
||||
@@ -80,6 +81,7 @@ public class UnitOfWork : IUnitOfWork
|
||||
AppUserReadingProfileRepository = new AppUserReadingProfileRepository(_context, _mapper);
|
||||
AnnotationRepository = new AnnotationRepository(_context, _mapper);
|
||||
EpubFontRepository = new EpubFontRepository(_context, _mapper);
|
||||
ReadingSessionRepository = new ReadingSessionRepository(_context, _mapper);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -112,6 +114,7 @@ public class UnitOfWork : IUnitOfWork
|
||||
public IAppUserReadingProfileRepository AppUserReadingProfileRepository { get; }
|
||||
public IAnnotationRepository AnnotationRepository { get; }
|
||||
public IEpubFontRepository EpubFontRepository { get; }
|
||||
public IReadingSessionRepository ReadingSessionRepository { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Commits changes to the DB. Completes the open transaction.
|
||||
|
||||
Reference in New Issue
Block a user