24 lines
621 B
C#
24 lines
621 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Siet_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class SIET_COMMESSE_DbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Commessa>? Commesse { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public SIET_COMMESSE_DbContext(DbContextOptions<SIET_COMMESSE_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Commessa>().ToView("API_COMMESSE");
|
|
}
|
|
}
|
|
}
|