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