Move vecchia soluzione NET5
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BlaServApp.Data.DatabaseModels
|
||||
{
|
||||
/// <summary>
|
||||
/// Tabella Articoli
|
||||
/// </summary>
|
||||
[Table("Articoli")]
|
||||
public class Articoli
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, Column("ArtId", Order = 0), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int ArtId { get; set; }
|
||||
|
||||
[Column("CodArticolo", Order = 1)]
|
||||
public string CodArticolo { get; set; } = "";
|
||||
|
||||
[Column("DescArticolo", Order = 2)]
|
||||
public string DescArticolo { get; set; } = "";
|
||||
|
||||
[Column("Tipo", Order = 3)]
|
||||
public string Tipo { get; set; } = "";
|
||||
|
||||
[Column("UM", Order = 4)]
|
||||
public string UM { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BlaServApp.Data.DatabaseModels
|
||||
{
|
||||
/// <summary>
|
||||
/// Tabella Articoli
|
||||
/// </summary>
|
||||
[Table("Config")]
|
||||
public class Config
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, Column("Chiave", Order = 0), MaxLength(50)]
|
||||
public string Chiave { get; set; }
|
||||
|
||||
[Column("Note", Order = 3)]
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
[Column("Valore", Order = 1)]
|
||||
public string Valore { get; set; } = "";
|
||||
|
||||
[Column("ValoreStd", Order = 2)]
|
||||
public string ValoreStd { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user