Files
lux/EgwCoreLib.Lux.Data/DbModel/GenClassModel.cs
T
Samuele Locatelli 184d536bb0 OK edit classe liste
2025-09-18 16:53:22 +02:00

39 lines
978 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace EgwCoreLib.Lux.Data.DbModel
{
[Table("GenClass")]
public class GenClassModel
{
/// <summary>
/// Cod della classe
/// </summary>
[Key]
public string ClassCod { get; set; } = "";
/// <summary>
/// Descrizione
/// </summary>
public string Description { get; set; } = "";
/// <summary>
/// Numero Item compresi
/// </summary>
[NotMapped]
public int NumChild
{
get => GenValNav?.Count ?? 0;
}
/// <summary>
/// Navigazione alle righe dei valori associati
/// </summary>
public virtual ICollection<GenValueModel> GenValNav { get; set; } = new List<GenValueModel>();
}
}