28 lines
766 B
C#
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
|
|
});
|
|
}
|
|
}
|
|
}
|