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