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

23 lines
612 B
C#

using Microsoft.EntityFrameworkCore;
namespace ApiPolo.Models.VT_dbcontext
{
/// <summary></summary>
public class VT_COMMESSE_DbContext : DbContext
{
/// <summary></summary>
public DbSet<CommesseVT>? Comm { get; set; }
/// <summary></summary>
public VT_COMMESSE_DbContext(DbContextOptions<VT_COMMESSE_DbContext> options) : base(options)
{
}
/// <summary></summary>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<CommesseVT>().ToView("API_COMMESSE");
}
}
}