fix: migrate to IDbContextFactory and remove direct AppDbContext from DI (#11)
Reviewed-on: #11 Co-authored-by: Marek Jasiński <jasins.marek@gmail.com> Co-committed-by: Marek Jasiński <jasins.marek@gmail.com>
This commit was merged in pull request #11.
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using NexusReader.Domain.Entities;
|
||||
|
||||
namespace NexusReader.Application.Abstractions.Persistence;
|
||||
|
||||
public interface IApplicationDbContext
|
||||
{
|
||||
DbSet<SemanticKnowledgeCache> SemanticKnowledgeCache { get; }
|
||||
DbSet<KnowledgeUnit> KnowledgeUnits { get; }
|
||||
DbSet<KnowledgeUnitLink> KnowledgeUnitLinks { get; }
|
||||
DbSet<Ebook> Ebooks { get; }
|
||||
DbSet<QuizResult> QuizResults { get; }
|
||||
|
||||
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user