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