23 lines
617 B
C#
23 lines
617 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Siet_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class SIET_IMPIANTI_DbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Impianto>? Impia { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public SIET_IMPIANTI_DbContext(DbContextOptions<SIET_IMPIANTI_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Impianto>().ToView("API_IMPIANTI");
|
|
}
|
|
}
|
|
}
|