WineAttr: Add MinQualId and MaxQualId
Test / Run tests (push) Successful in 2m27s

This commit is contained in:
lorenz.stechauner committed 2026-11-26 15:45:49 +01:00
1 parent bc419ce57a
commit 065fbc2eea
16 files changed
+161 -53

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@ namespace Elwig.Windows {
private bool _branchUpdate = false;
private async Task BranchesInitEditing(AppDbContext ctx) {
_branchList = new(await ctx.FetchBranches().ToListAsync());
_branchList = [with(await ctx.FetchBranches().ToListAsync())];
_branches = _branchList.ToDictionary(b => b.ZwstId, b => (string?)b.ZwstId);
_branchIds = _branchList.ToDictionary(b => b, b => b.ZwstId);
ControlUtils.RenewItemsSource(BranchList, _branchList);
@@ -50,7 +50,7 @@ namespace Elwig.Windows {
.Where(_branchIds.ContainsKey)
.Select(b => {
b.ZwstId = _branchIds[b];
ctx.Entry(b).State = EntityState.Added;
ctx.Entry(b).State = EntityState.Modified;
return b;
}));
await ctx.SaveChangesAsync();