ApiManutenzioni/ApiPolo/Models/Siet_dbcontext/SIET_NOTIFICHE_DbContext.cs
2024-01-23 11:59:33 +01:00

28 lines
766 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Siet_dbcontext
{
/// <summary></summary>
public class SIET_NOTIFICHE_DbContext : DbContext
{
/// <summary></summary>
public DbSet<Notifiche>? Notif { get; set; }
/// <summary></summary>
public SIET_NOTIFICHE_DbContext(DbContextOptions<SIET_NOTIFICHE_DbContext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Notifiche>().ToTable("PINOTIFI");
modelBuilder.Entity<Notifiche>().HasKey(table => new {
table.picodazi,
table.piserial
});
}
}
}