24 lines
626 B
C#
24 lines
626 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Gitoga_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class GITSR_CHIAMATE_Dbcontext : DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Chiamate>? Chiamate { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public GITSR_CHIAMATE_Dbcontext(DbContextOptions<GITSR_CHIAMATE_Dbcontext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Chiamate>().ToView("API_CHIAMATE");
|
|
}
|
|
}
|
|
}
|