更新202612

This commit is contained in:
GukSang.Jin
2026-05-20 13:33:15 +08:00
parent 43893e5da6
commit 17d9904898
7 changed files with 250 additions and 30 deletions

View File

@@ -84,5 +84,16 @@ namespace TabletTester2025.Services
query = query.OrderByDescending(b => b.TestTime).Take(limit);
return query.ToList();
}
public void DeleteBatch(int id)
{
using var db = new AppDbContext(_connectionString);
var batch = db.TestBatches.Find(id);
if (batch != null)
{
db.TestBatches.Remove(batch);
db.SaveChanges();
}
}
}
}