| [877c13c] | 1 | using Microsoft.EntityFrameworkCore;
|
|---|
| [d300631] | 2 | using Microsoft.EntityFrameworkCore.Storage;
|
|---|
| [877c13c] | 3 | using UserEntity = ChapterX.Domain.Entities.User;
|
|---|
| 4 | using StoryEntity = ChapterX.Domain.Entities.Story;
|
|---|
| 5 | using ChapterEntity = ChapterX.Domain.Entities.Chapter;
|
|---|
| 6 | using CommentEntity = ChapterX.Domain.Entities.Comment;
|
|---|
| 7 | using GenreEntity = ChapterX.Domain.Entities.Genre;
|
|---|
| 8 | using ReadingListEntity = ChapterX.Domain.Entities.ReadingList;
|
|---|
| 9 | using ReadingListItemsEntity = ChapterX.Domain.Entities.ReadingListItems;
|
|---|
| 10 | using NotificationEntity = ChapterX.Domain.Entities.Notification;
|
|---|
| 11 | using LikesEntity = ChapterX.Domain.Entities.Likes;
|
|---|
| 12 | using CollaborationEntity = ChapterX.Domain.Entities.Collaboration;
|
|---|
| 13 | using NotifyEntity = ChapterX.Domain.Entities.Notify;
|
|---|
| 14 | using AISuggestionEntity = ChapterX.Domain.Entities.AISuggestion;
|
|---|
| 15 | using AdminEntity = ChapterX.Domain.Entities.Admin;
|
|---|
| 16 | using WriterEntity = ChapterX.Domain.Entities.Writer;
|
|---|
| 17 | using RegularUserEntity = ChapterX.Domain.Entities.RegularUser;
|
|---|
| 18 | using HasGenreEntity = ChapterX.Domain.Entities.HasGenre;
|
|---|
| 19 | using NeedApprovalEntity = ChapterX.Domain.Entities.NeedApproval;
|
|---|
| 20 |
|
|---|
| 21 | namespace ChapterX.Application.Abstractions
|
|---|
| 22 | {
|
|---|
| 23 | public interface IApplicationDbContext
|
|---|
| 24 | {
|
|---|
| 25 | DbSet<UserEntity> Users { get; }
|
|---|
| 26 | DbSet<StoryEntity> Stories { get; }
|
|---|
| 27 | DbSet<ChapterEntity> Chapters { get; }
|
|---|
| 28 | DbSet<CommentEntity> Comments { get; }
|
|---|
| 29 | DbSet<GenreEntity> Genres { get; }
|
|---|
| 30 | DbSet<ReadingListEntity> ReadingLists { get; }
|
|---|
| 31 | DbSet<ReadingListItemsEntity> ReadingListItems { get; }
|
|---|
| 32 | DbSet<NotificationEntity> Notifications { get; }
|
|---|
| 33 | DbSet<LikesEntity> Likes { get; }
|
|---|
| 34 | DbSet<CollaborationEntity> Collaborations { get; }
|
|---|
| 35 | DbSet<NotifyEntity> Notifies { get; }
|
|---|
| 36 | DbSet<AISuggestionEntity> AISuggestions { get; }
|
|---|
| 37 | DbSet<AdminEntity> Admins { get; }
|
|---|
| 38 | DbSet<WriterEntity> Writers { get; }
|
|---|
| 39 | DbSet<RegularUserEntity> RegularUsers { get; }
|
|---|
| 40 | DbSet<HasGenreEntity> HasGenres { get; }
|
|---|
| 41 | DbSet<NeedApprovalEntity> NeedApprovals { get; }
|
|---|
| 42 | Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
|
|---|
| [d300631] | 43 | Task<IDbContextTransaction> BeginTransactionAsync(CancellationToken cancellationToken = default);
|
|---|
| [877c13c] | 44 | }
|
|---|
| 45 | }
|
|---|