23 lines
676 B
C#
23 lines
676 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Lifta_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class LIFTA_RAPPORTINI_Dbcontext : DbContext
|
|
{
|
|
/// <summary>Rapportini</summary>
|
|
public DbSet<Rappmast>? rapp { get; set; }
|
|
|
|
/// <summary>ConfigurazioniDbContext</summary>
|
|
public LIFTA_RAPPORTINI_Dbcontext(DbContextOptions<LIFTA_RAPPORTINI_Dbcontext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary>OnModelCreating</summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Rappmast>().ToView("API_RAPPORTINI");
|
|
}
|
|
}
|
|
}
|