source: ChapterX.Application/Abstractions/IApplicationDbContext.cs@ e294f7d

main
Last change on this file since e294f7d was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago

Added files

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