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