Continuo fix manuale interfacce e commenti

This commit is contained in:
Samuele E. Locatelli (W11-AI)
2026-03-25 17:23:42 +01:00
parent c762b4e74b
commit f3143573be
10 changed files with 254 additions and 62 deletions
@@ -12,6 +12,7 @@
#region Public Methods
/// <inheritdoc />
public async Task<bool> AddAsync(OfferRowModel entity)
{
await using var dbCtx = await CreateContextAsync(); await using var tx = await dbCtx.Database.BeginTransactionAsync();
@@ -45,6 +46,7 @@
}
}
/// <inheritdoc />
public async Task<bool> DeleteAsync(OfferRowModel entity)
{
await using var dbCtx = await CreateContextAsync();
@@ -89,6 +91,7 @@
}
}
/// <inheritdoc />
public async Task<List<ItemModel>> GetBomItemsAsync()
{
await using var dbCtx = await CreateContextAsync();
@@ -97,6 +100,7 @@
.ToListAsync();
}
/// <inheritdoc />
public async Task<OfferRowModel?> GetByIdAsync(int offerRowId)
{
await using var dbCtx = await CreateContextAsync();
@@ -105,6 +109,7 @@
.FirstOrDefaultAsync(x => x.OfferRowID == offerRowId);
}
/// <inheritdoc />
public async Task<List<OfferRowModel>> GetByParentAsync(int offerId)
{
await using var dbCtx = await CreateContextAsync();
@@ -115,6 +120,7 @@
.ToListAsync();
}
/// <inheritdoc />
public async Task<OfferRowModel?> GetByUidAsync(string offerRowUid)
{
await using var dbCtx = await CreateContextAsync();
@@ -123,12 +129,14 @@
.FirstOrDefaultAsync(x => x.OfferRowUID == offerRowUid);
}
/// <inheritdoc />
public async Task<List<ItemGroupModel>> GetItemGroupsAsync()
{
await using var dbCtx = await CreateContextAsync();
return await dbCtx.DbSetItemGroup.ToListAsync();
}
/// <inheritdoc />
public async Task<bool> SaveRowsAsync(List<OfferRowModel> rows)
{
// Add validation for null or empty list
@@ -157,6 +165,7 @@
}
}
/// <inheritdoc />
public async Task<bool> UpdateAsync(OfferRowModel entity)
{
await using var dbCtx = await CreateContextAsync();