using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Security_dbcontext
{
///
public class SECURITY_CHIAMATA_PROG_DbContext:DbContext
{
///
public DbSet? Progressivi { get; set; }
///
public SECURITY_CHIAMATA_PROG_DbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity().ToTable("cpwarn");
modelBuilder.Entity().HasKey(table => new {
table.tablecode,
table.warncode
});
}
}
}