24 lines
644 B
C#
24 lines
644 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Lift_web_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class LIFT_WEB_MANPROG_TECDbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Manprog>? Manutenzioni { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public LIFT_WEB_MANPROG_TECDbContext(DbContextOptions<LIFT_WEB_MANPROG_TECDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Manprog>().ToView("API_MANPROG");
|
|
}
|
|
}
|
|
}
|