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