17 lines
544 B
C#
17 lines
544 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiSoftway.Models.Gesa_DbContext
|
|
{
|
|
public class GESA_GIRICONSEGNEVISTA_DbContext : DbContext
|
|
{
|
|
public DbSet<GiriConsegnaView>? GiriView { get; set; }
|
|
public GESA_GIRICONSEGNEVISTA_DbContext(DbContextOptions<GESA_GIRICONSEGNEVISTA_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<GiriConsegnaView>().ToView("API_GIRICONSEGNA");
|
|
}
|
|
}
|
|
}
|