ApiManutenzioni/ApiPolo/Models/Security_dbcontext/SECURITY_COMMESSE_DbContext.cs
2024-04-23 15:19:58 +02:00

24 lines
636 B
C#

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