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