ApiManutenzioni/ApiPolo/Models/Gitoga_dbcontext/GITSR_COMMESSE_DbContext.cs
2025-02-10 17:36:15 +01:00

24 lines
626 B
C#

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