23 lines
638 B
C#
23 lines
638 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Security_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class SECURITY_SALDIART_DbContext:DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Saldiart>? Saldi { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public SECURITY_SALDIART_DbContext(DbContextOptions<SECURITY_SALDIART_DbContext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Saldiart>().ToView("API_SALDIART_PREZZI");
|
|
}
|
|
}
|
|
}
|