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

23 lines
677 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.Gitoga_dbcontext
{
/// <summary></summary>
public class GITSR_RAPPORTINI_Dbcontext : DbContext
{
/// <summary>Rapportini</summary>
public DbSet<Rappmast>? rapp { get; set; }
/// <summary>ConfigurazioniDbContext</summary>
public GITSR_RAPPORTINI_Dbcontext(DbContextOptions<GITSR_RAPPORTINI_Dbcontext> options) : base(options)
{
}
/// <summary>OnModelCreating</summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Rappmast>().ToView("API_RAPPORTINI");
}
}
}