18 lines
610 B
C#
18 lines
610 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiSoftway.Models.Gesa_DbContext
|
|
{
|
|
public class GESA_GIRICONSEGNEDACREARE_DESTINAZIONI_DbContext:DbContext
|
|
{
|
|
public DbSet<Destinazioni>? GiriDaCreare { get; set; }
|
|
public GESA_GIRICONSEGNEDACREARE_DESTINAZIONI_DbContext(DbContextOptions<GESA_GIRICONSEGNEDACREARE_DESTINAZIONI_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Destinazioni>().ToView("API_GIRICONSEGNA_DA_CREARE_DESTINAZIONI");
|
|
}
|
|
|
|
}
|
|
}
|