23 lines
612 B
C#
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");
|
|
}
|
|
}
|
|
}
|