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

24 lines
670 B
C#

using ApiPolo.Models.Sicilia_dbcontext;
using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Siet_dbcontext
{
/// <summary></summary>
public class SIET_MANPROG_TEC_DbContext : DbContext
{
/// <summary></summary>
public DbSet<Manprog>? Manutenzioni { get; set; }
/// <summary></summary>
public SIET_MANPROG_TEC_DbContext(DbContextOptions<SIET_MANPROG_TEC_DbContext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Manprog>().ToView("API_MANPROG");
}
}
}