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

29 lines
786 B
C#

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