Files

75 lines
2.0 KiB
C#

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