22 lines
672 B
C#
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");
|
|
}
|
|
}
|
|
}
|