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

22 lines
672 B
C#

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