1bfee37b4f
- Inizio a generare ricetta da template
36 lines
990 B
C#
36 lines
990 B
C#
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Bson;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using MP.Data.Conf;
|
|
|
|
namespace MP.Data.MgModels
|
|
{
|
|
public class RecipeModel : RecipeConfig
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string? Id { get; set; }
|
|
|
|
public int IdxPODL { get; set; } = 0;
|
|
public int IdxODL { get; set; } = 0;
|
|
|
|
|
|
/// <summary>
|
|
/// Dizionario chiavi/valori campi header
|
|
/// </summary>
|
|
public Dictionary<string, string> HeadVal { get; set; } = new Dictionary<string, string>();
|
|
/// <summary>
|
|
/// Elenco righe ricetta (ogni riga dizionario chiavi/valori)
|
|
/// </summary>
|
|
public Dictionary<int, Dictionary<string, string>> RowsVal { get; set; } = new Dictionary<int, Dictionary<string, string>>();
|
|
|
|
|
|
public string RawRecipe { get; set; } = "";
|
|
|
|
}
|
|
}
|