Enhance code readability and maintainability by refactoring various components. Update formatting commands in CLAUDE.md for csharpier integration. Simplify method signatures in SegmentFiles, UploadLimits, and multiple endpoint classes for improved clarity. Adjust query handlers and command handlers to streamline parameter handling and enhance consistency across the application.
This commit is contained in:
+4
-1
@@ -292,7 +292,10 @@ public sealed class ValidateTemplateQueryHandler(IAppDbContext dbContext)
|
||||
|
||||
// Список id собираем до запроса: проекция по материализованной коллекции внутри дерева
|
||||
// выражений заставляет EF пересобирать её на каждый вызов.
|
||||
var neededShowIds = showIds.Concat(partsByCollection.Select(p => p.ShowId)).Distinct().ToList();
|
||||
var neededShowIds = showIds
|
||||
.Concat(partsByCollection.Select(p => p.ShowId))
|
||||
.Distinct()
|
||||
.ToList();
|
||||
|
||||
var audiences = await dbContext
|
||||
.Shows.AsNoTracking()
|
||||
|
||||
Reference in New Issue
Block a user