update modello dati x prodItem child

This commit is contained in:
Samuele Locatelli
2025-11-19 18:58:31 +01:00
parent 9232d1db9c
commit 85e2dfe821
3 changed files with 24 additions and 7 deletions
@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using EgwCoreLib.Lux.Data.DbModel.Production;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static EgwCoreLib.Lux.Core.Enums;
@@ -129,7 +130,7 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
[NotMapped]
public double NumProdItems
{
get => OrderRowNav?.Sum(x => x.ProdItemQty) ?? 0;
get => OrderRowNav?.Sum(x => x.ProdItemQtyTot) ?? 0;
}
/// <summary>
@@ -190,5 +191,6 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales
/// Navigazione alle righe ordine
/// </summary>
public virtual ICollection<OrderRowModel> OrderRowNav { get; set; } = new List<OrderRowModel>();
}
}