Files
mapo-core/MP.Data/DatabaseModels/Macchine.cs
T
2023-03-31 17:45:37 +02:00

67 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
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.DatabaseModels
{
[Table("Macchine")]
public partial class Macchine
{
#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>
/// 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>
/// 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 Note { get; set; } = "";
//public string url { get; set; } = "";
//public string locazione { get; set; } = "";
//public string css { get; set; } = "";
//public int RowNum { get; set; } = 0;
//public int ColNum { get; set; } = 0;
#endregion Public Properties
}
}