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

24 lines
624 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Lifta_dbcontext
{
/// <summary></summary>
public class LIFTA_STO_RAPP_Dbcontext : DbContext
{
/// <summary></summary>
public DbSet<Sto_Rapp>? StoRapp { get; set; }
/// <summary></summary>
public LIFTA_STO_RAPP_Dbcontext(DbContextOptions<LIFTA_STO_RAPP_Dbcontext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Sto_Rapp>().ToView("API_STO_RAPP");
}
}
}