using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#nullable disable
//
// This is here so CodeMaid doesn't reorganize this document
//
namespace MP.Data.DbModels
{
[Table("Macchine")]
public partial class MacchineModel
{
#region Public Properties
[Key]
public string IdxMacchina { get; set; }
///
/// Cod macchina
///
public string CodMacchina { get; set; } = "";
///
/// Nome macchina
///
public string Nome { get; set; } = "";
///
/// Descrizione macchina
///
public string Descrizione { get; set; } = "";
///
/// Note macchina
///
public string Note { get; set; } = "";
///
/// Patch del file json di configurazione di una ricetta
///
public string RecipePath { get; set; } = "";
///
/// Path (assoluto!) dell'archivio ricette da impiegare
///
public string RecipeArchivePath { get; set; } = "";
///
/// Locazione (x ordinamento)
///
public string locazione { get; set; } = "";
///
/// Indica se abbia ricetta calcolata
///
[NotMapped]
public bool hasRecipeCalc
{
get => !string.IsNullOrEmpty(RecipePath);
}
///
/// Indica se abbia ricetta calcolata
///
[NotMapped]
public bool hasRecipeArch
{
get => !string.IsNullOrEmpty(RecipeArchivePath);
}
//public string url { get; set; } = "";
//public string css { get; set; } = "";
//public int RowNum { get; set; } = 0;
//public int ColNum { get; set; } = 0;
#endregion Public Properties
}
}