docs(attendance): explain SetCountsAsync divergence from ExecuteUpdate path

This commit is contained in:
Chris Chen
2026-06-24 11:17:19 -07:00
parent 8d91bbeb31
commit 7dc03f3bc0
@@ -84,6 +84,8 @@ public class MealAttendanceService : IMealAttendanceService
public async Task<AttendanceCountsDto> SetCountsAsync(DateOnly date, int adult, int youth, int kid)
{
// Single-editor back-office path, so a tracked load + SaveChanges is fine here; no need for the
// race-safe EnsureRowAsync + ExecuteUpdateAsync pattern, which the EF InMemory test provider can't run.
var row = await _db.MealAttendances.FirstOrDefaultAsync(a => a.AttendanceDate == date);
if (row is null)
{