using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace ApiPolo.Models.Siet_dbcontext
{
///
public class SIET_COMMESSE_DESC_DbContext : DbContext
{
///
public DbSet? Commdesc { get; set; }
///
public SIET_COMMESSE_DESC_DbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity().ToTable("SIET2LAV_MAST");
modelBuilder.Entity().HasKey(table => new {
table.laserial,
table.latiplav
});
}
}
/// Descrizione commessa per SIET
public class CommessaDescSiet
{
/// seriale Commessa
[Key]
public string? laserial { get; set; }
/// tipo lavorazione
public string? latiplav { get; set; }
/// centro di costo - ticket
public string? lacodcen { get; set; }
/// Codice commessa
public string? lacodcom { get; set; }
}
}