Changeset e882b92 for ChapterX.Infrastructure/Repositories
- Timestamp:
- 08/24/26 20:57:09 (13 days ago)
- Branches:
- main
- Parents:
- a6e33d1
- Location:
- ChapterX.Infrastructure/Repositories
- Files:
-
- 6 deleted
- 2 edited
-
AISuggestionRepository.cs (modified) (1 diff)
-
ContentTypeRepository.cs (deleted)
-
NotificationRepository.cs (modified) (1 diff)
-
NotifyRepository.cs (deleted)
-
PermissionLevelRepository.cs (deleted)
-
RolesRepository.cs (deleted)
-
StatusRepository.cs (deleted)
-
SuggestionTypeRepository.cs (deleted)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.Infrastructure/Repositories/AISuggestionRepository.cs
ra6e33d1 re882b92 21 21 { 22 22 return await _dbSet 23 .Include(a => a.SuggestionTypes)24 23 .Where(a => a.NeedApprovals.Any(na => na.ChapterId == chapterId)) 25 24 .ToListAsync(cancellationToken); -
ChapterX.Infrastructure/Repositories/NotificationRepository.cs
ra6e33d1 re882b92 12 12 } 13 13 14 // Currently Notification is not linked directly to a User entity.15 // This method returns all notifications; adjust filter when a User relation is added.16 14 public async Task<IEnumerable<Notification>> GetByUserIdAsync(int userId, CancellationToken cancellationToken = default) 17 15 => await _dbSet 18 .Where(n => n. RecipientUserId == userId)16 .Where(n => n.UserId == userId) 19 17 .OrderByDescending(n => n.CreatedAt) 20 18 .ToListAsync(cancellationToken);
Note:
See TracChangeset
for help on using the changeset viewer.
