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