ApiVirtualTask/ApiPolo/Models/VT_dbcontext/VT_COMMESSE_APP_DbContext.cs
2025-05-08 17:41:48 +02:00

23 lines
696 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.VT_dbcontext
{
/// <summary>Questo db context serve per creare l'eleco delle commesse da fornire all'APP</summary>
public class VT_COMMESSE_APP_DbContext : DbContext
{
/// <summary></summary>
public DbSet<Commessa>? Comm { get; set; }
/// <summary></summary>
public VT_COMMESSE_APP_DbContext(DbContextOptions<VT_COMMESSE_APP_DbContext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Commessa>().ToView("API_COMMESSE");
}
}
}