using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Security_dbcontext
{
/// SYSCOM
public class SECURITY_CHIAMATE_TABLE_DbContext:DbContext
{
///
public DbSet? Chi { get; set; }
///
public SECURITY_CHIAMATE_TABLE_DbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity().ToTable("CHIAMATE");
modelBuilder.Entity().HasKey(table => new {
table.chcodazi,
table.chserial
});
}
}
}