using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Tedesco_dbcontext
{
///
public class TEDES_MAG_NEWDbContext:DbContext
{
///
public DbSet? Mag { get; set; }
///
public TEDES_MAG_NEWDbContext(DbContextOptions options) : base(options)
{
}
///
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity().ToTable("TEDESMAG_NEW");
modelBuilder.Entity().HasKey(table => new
{
table.seriale_rapportino,
table.riga
});
}
}
}