ApiManutenzioni/ApiPolo/Models/Sicilia_dbcontext/SICILIA_CHIAMATA_SERIALE_DbContext.cs
2024-01-23 11:59:33 +01:00

26 lines
790 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Sicilia_dbcontext
{
/// <summary></summary>
public class SICILIA_CHIAMATA_SERIALE_DbContext : DbContext
{
/// <summary></summary>
public DbSet<ChiamataSeriale>? Seriali { get; set; }
/// <summary></summary>
public SICILIA_CHIAMATA_SERIALE_DbContext(DbContextOptions<SICILIA_CHIAMATA_SERIALE_DbContext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<ChiamataSeriale>().ToTable("LABSEPINUMCHI");
modelBuilder.Entity<ChiamataSeriale>().HasKey(table => new {
table.piditta
});
}
}
}