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

22 lines
674 B
C#

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