23 lines
642 B
C#
23 lines
642 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Gitoga_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class GITSR_SOSTITUZIONIDbContext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Sostituzione>? Sost { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public GITSR_SOSTITUZIONIDbContext(DbContextOptions<GITSR_SOSTITUZIONIDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Sostituzione>().ToView("API_SOSTITUZIONI");
|
|
}
|
|
}
|
|
}
|