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