23 lines
610 B
C#
23 lines
610 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Discovery_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class DISCO_PAGAMDbContext:DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Pagam>? Pagamenti { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public DISCO_PAGAMDbContext(DbContextOptions<DISCO_PAGAMDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Pagam>().ToView("API_PAGAMENTI");
|
|
}
|
|
}
|
|
}
|