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