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