22 lines
674 B
C#
22 lines
674 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Ferrari_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class FERRA_RAPPORTINIDbContext: DbContext
|
|
{
|
|
/// <summary>Rapportini</summary>
|
|
public DbSet<Rappmast>? rapp { get; set; }
|
|
|
|
/// <summary>ConfigurazioniDbContext</summary>
|
|
public FERRA_RAPPORTINIDbContext(DbContextOptions<FERRA_RAPPORTINIDbContext> options) : base(options)
|
|
{
|
|
}
|
|
/// <summary>OnModelCreating</summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Rappmast>().ToView("API_RAPPORTINI");
|
|
}
|
|
}
|
|
}
|