24 lines
652 B
C#
24 lines
652 B
C#
using ApiPolo.Models.Sicilia_dbcontext;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Siet_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class SIET_STO_IMP_DbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Sto_Imp>? StoImp { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public SIET_STO_IMP_DbContext(DbContextOptions<SIET_STO_IMP_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Sto_Imp>().ToView("API_STO_IMP");
|
|
}
|
|
}
|
|
}
|