ApiManutenzioni/ApiPolo/Models/Security_dbcontext/SECURITY_CHIAMATA_SERIALE_DbContext.cs
2024-04-23 15:19:58 +02:00

26 lines
792 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Security_dbcontext
{
/// <summary></summary>
public class SECURITY_CHIAMATA_SERIALE_DbContext:DbContext
{
/// <summary></summary>
public DbSet<ChiamataSeriale>? Seriali { get; set; }
/// <summary></summary>
public SECURITY_CHIAMATA_SERIALE_DbContext(DbContextOptions<SECURITY_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
});
}
}
}