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