23 lines
622 B
C#
23 lines
622 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiPolo.Models.Ferrari_dbcontext
|
|
{
|
|
/// <summary></summary>
|
|
public class FERRA_COMMESSEDbContext: DbContext
|
|
{
|
|
/// <summary></summary>
|
|
public DbSet<Commessa>? Commesse { get; set; }
|
|
|
|
/// <summary></summary>
|
|
public FERRA_COMMESSEDbContext(DbContextOptions<FERRA_COMMESSEDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
/// <summary></summary>
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<Commessa>().ToView("API_COMMESSE");
|
|
}
|
|
}
|
|
}
|